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

themasterpage's avatar

Spark Windows Installation Fail

Spark Composer install method does not work for me on Windows. I created the API token and joined the Spark GitHub Repository successfully. Updated the composer.json as per the posted instructions on the doc page and then tried composer update on both git bash and Homestead with the same results ...

[RuntimeException] Failed to execute git clone --no-checkout 'https://:@github.com/laravel/spark.git' '/home/vagrant/Sites/mysite/ve ndor/laravel/spark' && cd '/home/vagrant/Sites/mysite/vendor/laravel/spark' && git remote add composer 'https://: @github.com/laravel/spark.git' && git fetch composer Cloning into '/home/vagrant/Sites/mysite/vendor/laravel/spark'... remote: Repository not found. fatal: repository 'https://:@github.com/laravel/spark.git/' not found

I assume that there is a communication issue due to the blanks loaded in the github username. Any help would be greatly appreciated.

0 likes
10 replies
EventFellows's avatar

There is a specific Windows install in the docs. Is that what you used?

When I initially installed it on a homestead on windows that was the only way I could get it to work.

themasterpage's avatar

Yes I followed the doc to the letter and the above is what I get in return. After spending a day on this, I went the manual install route method and it is now installed. Thanks for responding to my post.

EventFellows's avatar

The only other thing I can think of is the usage of the API key. There are different things that are referred to as 'API key' but it refers to different keys and it was not so clear to me at first.

One of them is an API key that you need during composer install to get access to the private spark repository from your command line. This key is actually an API key that you need to create yourself in your github account and NOT the spark API key.

Not sure if that caused your problems but it might be a source of error.

1 like
niho's avatar

I have had the same problem. I defintley used the api key from github but it still doesnt work.

brynnb's avatar

Did you ever find a solution for this? I'm trying to deploy my Spark app on Heroku and I'm having difficulty making Heroku have access to the private repo. I've tried several variations of including my Github auth token in composer.json and tried using this buildpack that's supposed to fix this, both with no luck. Keep getting 404 not found for the Spark repo.

themasterpage's avatar

I eventually got it working by clearing everything out and then created a new token on Github and fed that to my Composer install in Homestead.

chrisgeorgebrown's avatar

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

1 like
pbyford's avatar

I solved this with one additional essential step - to accept the github invitation to the repos from within github. After connecting to the repos from within spark this seems to generate invites in github that must be accepted.

Please or to participate in this conversation.