2011-09-06 74 views
4

,當我嘗試安裝快車上,鐵路JS框架我有這樣的錯誤,請幫忙: https://github.com/1602/express-on-railway安裝快車上,鐵路JS錯誤

npm ERR! error installing [email protected] Error: Unsupported 
npm ERR! error installing [email protected]  at checkEngine (/usr/local/lib/node_modules/npm/lib/install.js:570:14) 
npm ERR! error installing [email protected]  at Array.0 (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8) 
npm ERR! error installing [email protected]  at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:13) 
npm ERR! error installing [email protected]  at chain (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:4) 
npm ERR! error installing [email protected]  at installOne_ (/usr/local/lib/node_modules/npm/lib/install.js:548:3) 
npm ERR! error installing [email protected]  at installOne (/usr/local/lib/node_modules/npm/lib/install.js:488:3) 
npm ERR! error installing [email protected]  at /usr/local/lib/node_modules/npm/lib/install.js:425:9 
npm ERR! error installing [email protected]  at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:54:35 
npm ERR! error installing [email protected]  at Array.forEach (native) 
npm ERR! error installing [email protected]  at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:54:11 
npm ERR! Unsupported 
npm ERR! Not compatible with your version of node/npm: [email protected] 
npm ERR! Required: {"node":">= 0.4.1 < 0.5.0"} 
npm ERR! Actual: {"npm":"1.0.22","node":"v0.5.3-pre"} 
npm ERR! 
npm ERR! System Linux 2.6.38-11-generic 
npm ERR! command "node" "/usr/local/bin/npm" "install" "railway" "-g" 
npm ERR! cwd /home/gezope 
npm ERR! node -v v0.5.3-pre 
npm ERR! npm -v 1.0.22 
... 
npm not ok 

任何幫助,將不勝感激!由於

回答

1

(這本來是一個註釋,但註釋的格式是咩

要做到這一點:

cd node (your node dir) 
git tag (see the list - I believe 0.4.11 is last marked stable) 
git checkout v0.4.11 
./configure 
make clean 
make 
make uninstall 
make install 

然後npm install express。

這會重置你t 0.4.11,你應該準備好搖滾。

+0

感謝您拼寫卸載,它幫助了我。 –

+0

也幫助過我,謝謝! – YogiZoli

3

Express不支持0.5

請使用0.4.x

+0

謝謝雷諾斯,太棒了!我如何在Ubuntu上指定我想要默認安裝並使用哪個分支?有關於它的任何演練或博客嗎?非常感謝 – YogiZoli