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

vitr's avatar
Level 4

Spark installer error on Homestead

I'm trying to install spark with the installer on freshly created homestead (using vagrant), got the error

vagrant@homestead:~/Code$ spark new Sparkle
sh: 1: laravel: Permission denied

I've got the required Laravel Installer

vagrant@homestead:~/Code$ laravel -v
Laravel Installer version 1.3.3

looked inside the code, obviously, spark installer tries to run

laravel new Sparkle

but with no luck((

0 likes
8 replies
vitr's avatar
vitr
OP
Best Answer
Level 4

OK, in case someone else hits the same issue, replace

PATH="/root/.composer/vendor/bin:$PATH"

with

PATH="/home/vagrant/.config/composer/vendor/bin:$PATH"

in ~/.profile and don't forget to add spark installer to the path, e.g.

PATH="/home/vagrant/Code/spark-installer:$PATH"

I might need to create a pull request to fix this

4 likes
rrrankin's avatar

THANK YOU!!! I've been trying to figure this out for several hours!

sj's avatar

should i change that in my homestead VM?

olimorris's avatar

I got around this luckily because I share my dotfiles environment with vagrant. Good spot though.

Please or to participate in this conversation.