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

felipepena's avatar

Issues while creating a new app in Spark

I'm trying to install a new using Spark, but this is what I get when I go with spark new eth

How can I solve this?

Warning: file_put_contents(/Users/felipepenariveros/Desktop/eth/spark-archive.zip): failed to open stream: No such file or directory in /usr/local/bin/spark-installer/src/Installation/DownloadSpark.php on line 60

Warning: ZipArchive::extractTo(): Invalid or uninitialized Zip object in /usr/local/bin/spark-installer/src/Installation/DownloadSpark.php on line 105

Warning: ZipArchive::close(): Invalid or uninitialized Zip object in /usr/local/bin/spark-installer/src/Installation/DownloadSpark.php on line 107

Warning: file_get_contents(/Users/felipepenariveros/Desktop/eth/composer.json): failed to open stream: No such file or directory in /usr/local/bin/spark-installer/src/Installation/UpdateComposerFile.php on line 55
sh: composer: command not found

Warning: file_get_contents(/Users/felipepenariveros/Desktop/eth/config/app.php): failed to open stream: No such file or directory in /usr/local/bin/spark-installer/src/Installation/AddCoreProviderToConfiguration.php on line 31

Warning: file_put_contents(/Users/felipepenariveros/Desktop/eth/config/app.php): failed to open stream: No such file or directory in /usr/local/bin/spark-installer/src/Installation/AddCoreProviderToConfiguration.php on line 39
Could not open input file: artisan

Warning: file_get_contents(/Users/felipepenariveros/Desktop/eth/config/app.php): failed to open stream: No such file or directory in /usr/local/bin/spark-installer/src/Installation/AddAppProviderToConfiguration.php on line 31

Warning: file_put_contents(/Users/felipepenariveros/Desktop/eth/config/app.php): failed to open stream: No such file or directory in /usr/local/bin/spark-installer/src/Installation/AddAppProviderToConfiguration.php on line 45
0 likes
8 replies
Cronix's avatar

after cloning the installer repository, did you run a composer install on it?

felipepena's avatar

yes, I did that.

I have the follow dependencies in the vendor folder.

-rw-r--r--   1 felipepenariveros  admin  178 Feb 20 09:17 autoload.php
drwxr-xr-x  11 felipepenariveros  admin  374 Feb 18 17:09 composer
drwxr-xr-x   3 felipepenariveros  admin  102 Feb 18 17:09 doctrine
drwxr-xr-x   5 felipepenariveros  admin  170 Feb 18 17:09 guzzlehttp
drwxr-xr-x   5 felipepenariveros  admin  170 Feb 18 17:09 illuminate
drwxr-xr-x   3 felipepenariveros  admin  102 Feb 18 17:09 paragonie
drwxr-xr-x   4 felipepenariveros  admin  136 Feb 18 17:09 psr
drwxr-xr-x   7 felipepenariveros  admin  238 Feb 18 17:09 symfony
Cronix's avatar

have you verified whether those paths and files exist that it says are missing?

felipepena's avatar

yes, I did. Although, this seems to be related to the spark installer. I've followed every step in the office documentation and still can't get this to work properly.

Cronix's avatar

Have you tried installing using composer? There are a few extra steps but its not a big deal. You might also try just deleting the installer and trying to grab it fresh. Did you install the installer globally with composer?

felipepena's avatar

I did try with Laravel and adding Spark to composer. This is what I get:

[RuntimeException]
  Failed to execute git clone --no-checkout 'https://***:***@github.com/laravel/spark.git' '/Users/felipepenariveros/Desktop/larav
  el-master/vendor/laravel/spark' && cd '/Users/felipepenariveros/Desktop/laravel-master/vendor/laravel/spark' && git remote add c
  omposer 'https://***:***@github.com/laravel/spark.git' && git fetch composer
  Cloning into '/Users/felipepenariveros/Desktop/laravel-master/vendor/laravel/spark'...
  remote: Repository not found.
  fatal: repository 'https://***:***@github.com/laravel/spark.git/' not found
Mancy's avatar

Have you tried updating the Laravel installer? If not run this command

composer global remove laravel/installer

composer global require laravel/installer

or

composer global update

dduce's avatar

I had the same thing happen to me, the solution was actually to add laravel to my $PATH. For some reason, that didn't happen automatically. I had to add it to the ~/.zshrc, you might need to add it to another file.

The line to add is:

export PATH=$HOME/.composer/vendor/bin:$PATH

Please or to participate in this conversation.