I just tried to install Spark to my Homestead environment but stopt at the folowing Error:
PHP Warning: copy(/home/vagrant/config/app.php): failed to open stream: No such file or directory in /home/vagrant/.composer/vendor/laravel/spark-installer/src/Console/InstallCommand.php on line 34
&&
Warning: copy(/home/vagrant/config/app.php): failed to open stream: No such file or directory in /home/vagrant/.composer/vendor/laravel/spark-installer/src/Console/InstallCommand.php on line 34
At First i just installed the Spark installation commands, an by that ran the spark install CL command.
On you're gues i just did an composer install an it installed a lot of things (and gave a bunch of symphony suggestions)
re-run of spark Install and gives met The following error:
PHP Warning: copy(/home/vagrant/vendor/laravel/spark/config/app.php): failed to open stream: No such file or directory in /home/vagrant/.composer/vendor/laravel/spark-installer/src/Console/InstallCommand.php on line 34
PHP Stack trace:
PHP 1. {main}() /home/vagrant/.composer/vendor/laravel/spark-installer/spark:0
PHP 2. Symfony\Component\Console\Application->run() /home/vagrant/.composer/vendor/laravel/spark-installer/spark:13
PHP 3. Symfony\Component\Console\Application->doRun() /home/vagrant/.composer/vendor/symfony/console/Application.php:126
PHP 4. Symfony\Component\Console\Application->doRunCommand() /home/vagrant/.composer/vendor/symfony/console/Application.php:195
PHP 5. Symfony\Component\Console\Command\Command->run() /home/vagrant/.composer/vendor/symfony/console/Application.php:878
PHP 6. Laravel\SparkInstaller\Console\InstallCommand->execute() /home/vagrant/.composer/vendor/symfony/console/Command/Command.php:259
PHP 7. copy() /home/vagrant/.composer/vendor/laravel/spark-installer/src/Console/InstallCommand.php:34
Warning: copy(/home/vagrant/vendor/laravel/spark/config/app.php): failed to open stream: No such file or directory in /home/vagrant/.composer/vendor/laravel/spark-installer/src/Console/InstallCommand.php on line 34
I know this is an old post, but I ran into this problem. For me it was because I didn't have both the ~/.composer/vendor/bin and ~/Sites/spark-installer in my $PATH.
I added both these lines in my .zshrc file (I guess .bashrc if you use that):