Marvin K
Marvin K

Reputation: 447

npm error required vs actual version?

I got a npm error installing express, what does this mean? I think it means I have to uninstall node and reinstall it? Or upgrade it perhaps. Can't figure out what I'm supposed to do and I'm reluctant to start screwing with it for fear of corrupting something.

My-Comp:websockets101 myuser$ npm install express
npm ERR! error installing [email protected] Error: Unsupported
npm ERR! error installing [email protected]     at checkEngine (/usr/lib/node_modules/npm/lib/install.js:567:14)
npm ERR! error installing [email protected]     at nextStep (/usr/lib/node_modules/npm/lib/utils/chain.js:54:8)
npm ERR! error installing [email protected]     at chain (/usr/lib/node_modules/npm/lib/utils/chain.js:27:3)
npm ERR! error installing [email protected]     at installOne_ (/usr/lib/node_modules/npm/lib/install.js:545:3)
npm ERR! error installing [email protected]     at installOne (/usr/lib/node_modules/npm/lib/install.js:485:3)
npm ERR! error installing [email protected]     at /usr/lib/node_modules/npm/lib/install.js:422:9
npm ERR! error installing [email protected]     at /usr/lib/node_modules/npm/lib/utils/async-map.js:57:35
npm ERR! error installing [email protected]     at Array.forEach (native)
npm ERR! error installing [email protected]     at /usr/lib/node_modules/npm/lib/utils/async-map.js:57:11
npm ERR! error installing [email protected]     at Array.forEach (native)
npm ERR! Unsupported
npm ERR! Not compatible with your version of node/npm: [email protected]
npm ERR! Required: {"node":">= 0.5.0"}
npm ERR! Actual:   {"npm":"1.0.17","node":"v0.4.11"}
npm ERR! 
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/bin/npm" "install" "express"
npm ERR! cwd /Users/myuser/projects/websockets101
npm ERR! node -v v0.4.11
npm ERR! npm -v 1.0.17

Upvotes: 1

Views: 1025

Answers (1)

user1207456
user1207456

Reputation:

Looks like a goof-up on the Express maintainer's part. He's letting Express 3.0.0 beta install on Node 0.4.x installs, but is requiring a library that will only install on 0.5.x and higher.

Try npm install [email protected] to get the latest release version (3.0 is still in beta) which is guaranteed to work on Node 0.4.x, or upgrade to the latest version of Node.js (now 0.8.1, I believe).

Upvotes: 2

Related Questions