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

elbsurfer's avatar

Installation / npm errors

Hello, I tried the following installation process for spark:

  1. I created a folder st3
  2. I opened up the folder st3 and installed the laravel installer: composer global require "laravel/installer"
  3. I copied spark-installer into st3 and opened the folder "spark-installer".
  4. Then I typed: composer install
  5. I added the path to spark-installer to my .bash-profile.
  6. I typed spark new spielertunnel3 --team-billing
  7. Then there were some installations and the question: Would you like to install the NPM dependencies? (yes/no) [yes]: yes
  8. I received these errors:
Warning: file_get_contents(/Users/Torben/Sites/st3/spark-installer/spielertunnel3/config/app.php): failed to open stream: No such file or directory in /Users/Torben/Sites/st3/spark-installer/src/Installation/AddCoreProviderToConfiguration.php on line 32

Warning: file_put_contents(/Users/Torben/Sites/st3/spark-installer/spielertunnel3/config/app.php): failed to open stream: No such file or directory in /Users/Torben/Sites/st3/spark-installer/src/Installation/AddCoreProviderToConfiguration.php on line 40
Could not open input file: artisan

Warning: file_get_contents(/Users/Torben/Sites/st3/spark-installer/spielertunnel3/config/app.php): failed to open stream: No such file or directory in /Users/Torben/Sites/st3/spark-installer/src/Installation/AddAppProviderToConfiguration.php on line 32

Warning: file_put_contents(/Users/Torben/Sites/st3/spark-installer/spielertunnel3/config/app.php): failed to open stream: No such file or directory in /Users/Torben/Sites/st3/spark-installer/src/Installation/AddAppProviderToConfiguration.php on line 46
nstalling NPM Dependencies...
npm ERR! install Couldn't read dependencies
npm ERR! Darwin 15.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! path /Users/Torben/Sites/st3/spark-installer/spielertunnel3/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2

npm ERR! package.json ENOENT, open '/Users/Torben/Sites/st3/spark-installer/spielertunnel3/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.

But why? How can I fix this? Thanks!

When I try to install it with Composer only, I get this error after entering my GitHub token:

[RuntimeException]
  - Installing laravel/spark (v1.0.12)
    Downloading: Failed
    Failed to download laravel/spark from dist: The "https://api.github.com/repos/laravel/spark/zipball/15f32e597b318d1add45e1312s388b9592b13b" file could not be downloaded (HTTP/1.1 404 Not Found)
    Now trying to download from source
  - Installing laravel/spark (v1.0.12)
    Cloning 15f32e597b318d1add45ea0c2615388213s592b13b


  [RuntimeException]
  Failed to execute git clone --no-checkout 'https://***:***@github.com/laravel/spark.git' '/Users/Torben/Sites/st3n/spielertunnel3/vendor/laravel/spark' && cd '/Users/Torben/Sites/st3n/spielertunnel3/v
  endor/laravel/spark' && git remote add composer 'https://***:***@github.com/laravel/spark.git' && git fetch composer
  Cloning into '/Users/Torben/Sites/st3n/spielertunnel3/vendor/laravel/spark'...
  remote: Repository not found.
  fatal: repository 'https://***:***@github.com/laravel/spark.git/' not found
0 likes
1 reply
brynnb's avatar

Did you ever find a solution for this? I'm trying to deploy my Spark app on Heroku and I'm having difficulty making Heroku have access to the private repo. I've tried several variations of including my Github auth token in composer.json and tried using this buildpack that's supposed to fix this, both with no luck. Keep getting 404 not found for the Spark repo.

Please or to participate in this conversation.