Level 4
The solution in this thread solved the problem: https://laracasts.com/discuss/channels/spark/spark-installer-error-on-homestead
It was the PATH value set by latest Homestead.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I installed and registered Spark on the latest Homestead. When I try to do spark new myapp.dev I get this output:
vagrant@homestead:~/Projects$ spark new myapp.dev
sh: 1: laravel: Permission denied
Downloading Spark...
PHP Warning: file_put_contents(/home/vagrant/Projects/myapp.dev/spark-archive.zip): failed to open stream: No such file or directory in /home/vagrant/Projects/laravel-spark/src/Installation/DownloadSpark.php on line 60
Warning: file_put_contents(/home/vagrant/Projects/myapp.dev/spark-archive.zip): failed to open stream: No such file or directory in /home/vagrant/Projects/laravel-spark/src/Installation/DownloadSpark.php on line 60
PHP Warning: ZipArchive::extractTo(): Invalid or uninitialized Zip object in /home/vagrant/Projects/laravel-spark/src/Installation/DownloadSpark.php on line 106
Warning: ZipArchive::extractTo(): Invalid or uninitialized Zip object in /home/vagrant/Projects/laravel-spark/src/Installation/DownloadSpark.php on line 106
PHP Warning: ZipArchive::close(): Invalid or uninitialized Zip object in /home/vagrant/Projects/laravel-spark/src/Installation/DownloadSpark.php on line 108
Warning: ZipArchive::close(): Invalid or uninitialized Zip object in /home/vagrant/Projects/laravel-spark/src/Installation/DownloadSpark.php on line 108
PHP Notice: Undefined offset: 0 in /home/vagrant/Projects/laravel-spark/src/Installation/DownloadSpark.php on line 121
Notice: Undefined offset: 0 in /home/vagrant/Projects/laravel-spark/src/Installation/DownloadSpark.php on line 121
PHP Warning: file_get_contents(/home/vagrant/Projects/myapp.dev/composer.json): failed to open stream: No such file or directory in /home/vagrant/Projects/laravel-spark/src/Installation/UpdateComposerFile.php on line 55
Warning: file_get_contents(/home/vagrant/Projects/myapp.dev/composer.json): failed to open stream: No such file or directory in /home/vagrant/Projects/laravel-spark/src/Installation/UpdateComposerFile.php on line 55
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package laravel/spark could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
PHP Warning: file_get_contents(/home/vagrant/Projects/myapp.dev/config/app.php): failed to open stream: No such file or directory in /home/vagrant/Projects/laravel-spark/src/Installation/AddCoreProviderToConfiguration.php on line 32
Warning: file_get_contents(/home/vagrant/Projects/myapp.dev/config/app.php): failed to open stream: No such file or directory in /home/vagrant/Projects/laravel-spark/src/Installation/AddCoreProviderToConfiguration.php on line 32
PHP Warning: file_put_contents(/home/vagrant/Projects/myapp.dev/config/app.php): failed to open stream: No such file or directory in /home/vagrant/Projects/laravel-spark/src/Installation/AddCoreProviderToConfiguration.php on line 40
Warning: file_put_contents(/home/vagrant/Projects/myapp.dev/config/app.php): failed to open stream: No such file or directory in /home/vagrant/Projects/laravel-spark/src/Installation/AddCoreProviderToConfiguration.php on line 40
Could not open input file: artisan
PHP Warning: file_get_contents(/home/vagrant/Projects/myapp.dev/config/app.php): failed to open stream: No such file or directory in /home/vagrant/Projects/laravel-spark/src/Installation/AddAppProviderToConfiguration.php on line 32
Warning: file_get_contents(/home/vagrant/Projects/myapp.dev/config/app.php): failed to open stream: No such file or directory in /home/vagrant/Projects/laravel-spark/src/Installation/AddAppProviderToConfiguration.php on line 32
PHP Warning: file_put_contents(/home/vagrant/Projects/myapp.dev/config/app.php): failed to open stream: No such file or directory in /home/vagrant/Projects/laravel-spark/src/Installation/AddAppProviderToConfiguration.php on line 46
Warning: file_put_contents(/home/vagrant/Projects/myapp.dev/config/app.php): failed to open stream: No such file or directory in /home/vagrant/Projects/laravel-spark/src/Installation/AddAppProviderToConfiguration.php on line 46
Any idea what is up?
The solution in this thread solved the problem: https://laracasts.com/discuss/channels/spark/spark-installer-error-on-homestead
It was the PATH value set by latest Homestead.
Please or to participate in this conversation.