Skip to content

Heroku Deploy Fails #342

trvrplk opened this Issue Aug 27, 2012 · 13 comments

6 participants

trvrplk commented Aug 27, 2012

I get this error when deploying to heroku:

Counting objects: 3096, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (913/913), done.
Writing objects: 100% (3096/3096), 367.58 KiB, done.
Total 3096 (delta 2090), reused 3096 (delta 2090)

-----> Heroku receiving push
-----> Node.js app detected
-----> Resolving engine versions

       WARNING: No version of Node.js specified in package.json, see:

       WARNING: The default version of Node.js and npm on Heroku will begin
       tracking the latest stable release starting September 1, 2012.

       Using Node.js version: 0.4.7
       Using npm version: 1.0.106
-----> Fetching Node.js binaries
-----> Vendoring node into slug
-----> Installing dependencies with npm
       npm ERR! Unsupported
       npm ERR! Not compatible with your version of node/npm: connect@2.3.4
       npm ERR! Required: {"node":">= 0.5.0"}
       npm ERR! Actual:   {"npm":"1.0.106","node":"0.4.7"}
       npm ERR! 
       npm ERR! System Linux 2.6.32-343-ec2
       npm ERR! command "/tmp/node-node-WL2W/bin/node" "/tmp/node-npm-em0x/cli.js" "install" "--production"
       npm ERR! cwd /tmp/build_3a89dzhtcrg6p
       npm ERR! node -v v0.4.7
       npm ERR! npm -v 1.0.106
       npm ERR! code ENOTSUP
       npm ERR! 
       npm ERR! Additional logging details can be found in:
       npm ERR!     /tmp/build_3a89dzhtcrg6p/npm-debug.log
       npm not ok
 !     Failed to install --production dependencies with npm
 !     Heroku push rejected, failed to compile Node.js app

 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ''

Update: after changing the required version of Node and NPM, it still throws the same error. I would really like some help.

GitHub member

How did you change the required node/npm? This should get you there, ie configure heroku to use a newer node.js version.

It looks like 6aaa803 'fixed' connect to use a 0.8.x compatible version of connect, but that means not supporting before that :(

trvrplk commented Sep 18, 2012

I looked at that exact page, as Heroku pointed me to that URL in the failed Git push message. I'll try deploying again.

trvrplk commented Sep 18, 2012

Heroku says it needs node to be 0.5.0 or higher, I'll try adding that to my package.json and see if that fixes it...

trvrplk commented Sep 18, 2012

After changing package.json, Heroku says it's Javascript, not JSON.

GitHub member

@bagelstability can you paste the full package.json please?

trvrplk commented Oct 20, 2012

Not at this point, I deleted the heroku repo.


@technicalpickles @bagelstability
These settings work for me:

"engines": {
  "node": "0.8.x",
  "npm": "1.1.x"

@christianv that didn't work for me. Which package.json file are you changing those settings to?


@emilepetrone feel free to have a look at our current package.json.

I also had to do some extra things to make it running on heroku, which I documented in the README.

trvrplk commented Oct 26, 2012

@emilepetrone Using that guide, i get this error when creating a hubot:

Error: In /Users/myface13214/Code/GitHub/hubot/src/, Parse error on line 20: Unexpected 'IDENTIFIER'
    at Object.parseError (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/parser.js:470:11)
    at Object.parse (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/parser.js:546:22)
    at exports.compile.compile (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:40:22)
    at (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:18:17)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/Users/myface13214/Code/GitHub/hubot/bin/hubot:12:13)
    at Object.<anonymous> (/Users/myface13214/Code/GitHub/hubot/bin/hubot:109:4)
@tombell tombell closed this Jan 10, 2013
oangeor commented Apr 29, 2013

Thank you @christianv .Your settings helped me a lot


@oangeor You're totally welcome, glad I could help out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.