我在安装 express 时遇到 npm 错误,这是什么意思?我认为这意味着我必须卸载节点并重新安装它?或者升级它。无法弄清楚我应该做什么,我不愿意开始搞砸它,因为害怕破坏某些东西。
My-Comp:websockets101 myuser$ npm install express
npm ERR! error installing express@3.0.0beta7 Error: Unsupported
npm ERR! error installing express@3.0.0beta7 at checkEngine (/usr/lib/node_modules/npm/lib/install.js:567:14)
npm ERR! error installing express@3.0.0beta7 at nextStep (/usr/lib/node_modules/npm/lib/utils/chain.js:54:8)
npm ERR! error installing express@3.0.0beta7 at chain (/usr/lib/node_modules/npm/lib/utils/chain.js:27:3)
npm ERR! error installing express@3.0.0beta7 at installOne_ (/usr/lib/node_modules/npm/lib/install.js:545:3)
npm ERR! error installing express@3.0.0beta7 at installOne (/usr/lib/node_modules/npm/lib/install.js:485:3)
npm ERR! error installing express@3.0.0beta7 at /usr/lib/node_modules/npm/lib/install.js:422:9
npm ERR! error installing express@3.0.0beta7 at /usr/lib/node_modules/npm/lib/utils/async-map.js:57:35
npm ERR! error installing express@3.0.0beta7 at Array.forEach (native)
npm ERR! error installing express@3.0.0beta7 at /usr/lib/node_modules/npm/lib/utils/async-map.js:57:11
npm ERR! error installing express@3.0.0beta7 at Array.forEach (native)
npm ERR! Unsupported
npm ERR! Not compatible with your version of node/npm: connect@2.3.9
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