Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fahad's avatar
Level 7

Error installing Spark

Hi,

Getting error when installing Spark. I am on windows and when i run composer update step described in the Doc. I get a lots of error.


 composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing laravel/spark (v3.0.4)
    Downloading: Failed
    Failed to download laravel/spark from dist: The "https://api.github.com/repos/laravel/spark/zipball/ad230456253f5e33ee7f21c114dfe133b52d0a5f" file could not be downloaded (HTTP/1.1 404 Not Found)
    Now trying to download from source
  - Installing laravel/spark (v3.0.4)
    Cloning ad230456253f5e33ee7f21c114dfe133b52d0a5f
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+Fahad-PC+2016-12-19+1141
to retrieve a token. It will be stored in "C:/Users/Fahad/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden): 9Cm5uZIo0t1jy8FVi3fudS1rfINk1X7Th7YeWCOoIIRd6B8Byiomp0nZm4Jq

Invalid token provided.
You can also add it manually later by using "composer config github-oauth.github.com <token>"


  [RuntimeException]
  Failed to execute git clone --no-checkout "https://9Cm5uZIo0t1jy8FVi3fudS1r
  fINk1X7Th7YeWCOoIIRd6B8Byiomp0nZm4Jq:***@github.com/laravel/spark.git" "C:\
  laragon\www\spark2\vendor\laravel\spark" && cd /D "C:\laragon\www\spark2\ve
  ndor\laravel\spark" && git remote add composer "https://9Cm5uZIo0t1jy8FVi3f
  udS1rfINk1X7Th7YeWCOoIIRd6B8Byiomp0nZm4Jq:***@github.com/laravel/spark.git"
   && git fetch composer
  Cloning into 'C:\laragon\www\spark2\vendor\laravel\spark'...
  remote: Invalid username or password.
  fatal: Authentication failed for 'https://9Cm5uZIo0t1jy8FVi3fudS1rfINk1X7Th
  7YeWCOoIIRd6B8Byiomp0nZm4Jq:***@github.com/laravel/spark.git/'


update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...



Need help.

With THanks, Fahad

0 likes
4 replies
chrisgeorgebrown's avatar

You need to link your Spark account to your Github Repo so that you can access the private Spark Repo.

Cronix's avatar

Yes, @chrisgeorgebrown is correct, and the error in the original post even tells you exactly what you need to do to fix it!

Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+Fahad-PC+2016-12-19+1141 to retrieve a token. It will be stored in "C:/Users/Fahad/AppData/Roaming/Composer/auth.json" for future use by Composer.

jdebuchy's avatar

I'm having this same error.

What if we are going to be using Laravel Spark with another developers on a same project. Supposing we are 5 devs, do we have to purchase 5 licenses?

Is there is any way to manage a team or project license?

Please or to participate in this conversation.