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

slapyo's avatar

Spark won't install

I have the Laravel installer and Spark installer both in place and in my PATH. I can verify this by by running laravel and spark.

Laravel Installer version 1.3.3
Laravel Spark Installer version 1.0.3

When I run spark new proj I get the following output.

spark new proj
sh: 1: laravel: not found
Downloading Spark...
PHP Warning:  file_put_contents(/usr/share/nginx/proj/spark-archive.zip): failed to open stream: No such file or directory in /home/slapyo/spark-installer/src/Installation/DownloadSpark.php on line 59
PHP Warning:  ZipArchive::extractTo(): Permission denied in /home/slapyo/spark-installer/src/Installation/DownloadSpark.php on line 105
PHP Warning:  ZipArchive::close(): Invalid or uninitialized Zip object in /home/slapyo/spark-installer/src/Installation/DownloadSpark.php on line 107


  [InvalidArgumentException]
  The "/usr/share/nginx/proj/spark-new" directory does not exist.


new [--braintree] [--team-billing] [--] <name>

Not really sure what's going on and why it won't install. Any help is appreciated.

0 likes
2 replies
ZetecVan's avatar

@slapyo Did you get to the bottom of this? I'm having the same problem and can't find the solution online.

slapyo's avatar

I did, it ended up being user permissions on the server.

Please or to participate in this conversation.