1
安裝express時出現npm錯誤,這是什麼意思?我認爲這意味着我必須卸載節點並重新安裝它?或者升級它。無法弄清楚我應該做什麼,我不願意開始搞砸它,因爲害怕破壞某些東西。需要npm錯誤與實際版本?
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
如何升級您的節點版本? – 2012-07-19 20:54:24
這很大程度上取決於您使用的操作系統。 Node.js可以在我知道的Linux,Mac,Windows,Solaris和BSD上運行。 – 2012-07-19 21:14:31
我在Mac上。我要去嘗試「npm install n」然後「n latest」 – 2012-07-20 01:45:25