Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

deploy on heroku failed because npm version is not the latest

looks like heroku is using npm version 1.0.94

I have a dependency that require node 0.6.x, but npm 1.0.94 is 'based' on node 0.4.7

is there any workaround to solve this issue.

Installing dependencies with npm 1.0.94
       npm ERR! Unsupported
       npm ERR! Not compatible with your version of node/npm: [email protected]
       npm ERR! Required: {"node":"0.6.x"}
       npm ERR! Actual:   {"npm":"1.0.94","node":"0.4.7"}
like image 607
denisjacquemin Avatar asked Dec 09 '22 03:12

denisjacquemin


1 Answers

The example listed @ http://devcenter.heroku.com/articles/node-js

worked for me when I modified the package.json to the following:

{
  "name": "node-example",
  "version": "0.0.1",
  "dependencies": {
    "express": ">=2.2.0"
  }
}
like image 91
jdavid.net Avatar answered Feb 12 '23 10:02

jdavid.net