Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku deploy button failed #55

Closed
Grummfy opened this issue Nov 27, 2014 · 2 comments
Closed

Heroku deploy button failed #55

Grummfy opened this issue Nov 27, 2014 · 2 comments
Milestone

Comments

@Grummfy
Copy link

Grummfy commented Nov 27, 2014

Hi,
when I try the deploy to heroku button, it detects an nodejs env and not a php env. So the build failed

-----> Node.js app detected
-----> Resetting git environment
/app/tmp/buildpacks/nodejs/bin/compile: line 35: [: ==: unary operator expected
-----> Defaulting to latest stable node: 0.10.33
-----> Downloading and installing node
-----> Exporting config vars to environment
-----> Installing dependencies
       npm ERR! install Couldn't read dependencies
       npm ERR! Failed to parse json
       npm ERR! Unexpected end of input
       npm ERR! File: /tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/package.json
       npm ERR! Failed to parse package.json data.
       npm ERR! package.json must be actual JSON, not just JavaScript.
       npm ERR! 
       npm ERR! This is not a bug in npm.
       npm ERR! Tell the package author to fix their package.json file. JSON.parse

       npm ERR! System Linux 3.8.11-ec2
       npm ERR! command "/tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/vendor/node/bin/node" "/tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/vendor/node/bin/npm" "install" "--userconfig" "/tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/.npmrc" "--production"
       npm ERR! cwd /tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4
       npm ERR! node -v v0.10.33
       npm ERR! npm -v 1.4.28
       npm ERR! file /tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/package.json
       npm ERR! code EJSONPARSE
       npm ERR! 
       npm ERR! Additional logging details can be found in:
       npm ERR!     /tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/npm-debug.log
       npm ERR! not ok code 0
0 info it worked if it ends with ok
1 verbose cli [ '/tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/vendor/node/bin/node',
1 verbose cli   '/tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/vendor/node/bin/npm',
1 verbose cli   'install',
1 verbose cli   '--userconfig',
1 verbose cli   '/tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/.npmrc',
1 verbose cli   '--production' ]
2 info using npm@1.4.28
3 info using node@v0.10.33
4 verbose config Skipping project config: /tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/.npmrc. (matches userconfig)
5 error install Couldn't read dependencies
6 error Failed to parse json
6 error Unexpected end of input
7 error File: /tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/package.json
8 error Failed to parse package.json data.
8 error package.json must be actual JSON, not just JavaScript.
8 error
8 error This is not a bug in npm.
8 error Tell the package author to fix their package.json file. JSON.parse
9 error System Linux 3.8.11-ec2
10 error command "/tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/vendor/node/bin/node" "/tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/vendor/node/bin/npm" "install" "--userconfig" "/tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/.npmrc" "--production"
11 error cwd /tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4
12 error node -v v0.10.33
13 error npm -v 1.4.28
14 error file /tmp/build_c2546f7b9a12ec1693fab778226c6033/cachethq-Cachet-1144df4/package.json
15 error code EJSONPARSE
16 verbose exit [ 1, true ]

 !     Push rejected, failed to compile Node.js app
@jbrooksuk
Copy link
Member

I've deleted the package.json which was empty and being misread. Can you try again please.

@jbrooksuk jbrooksuk reopened this Nov 27, 2014
@Grummfy
Copy link
Author

Grummfy commented Nov 27, 2014

fixed

@Grummfy Grummfy closed this as completed Nov 27, 2014
@GrahamCampbell GrahamCampbell modified the milestone: V0.1.0 Alpha Jul 25, 2015
@efriel efriel mentioned this issue May 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants