首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装快速铁路JS错误

安装快速铁路JS错误
EN

Stack Overflow用户
提问于 2011-09-06 21:53:40
回答 2查看 863关注 0票数 4

当我尝试安装快速铁路JS框架时出现此错误,请帮助:https://github.com/1602/express-on-railway

代码语言:javascript
复制
npm ERR! error installing railway@0.1.7-8 Error: Unsupported
npm ERR! error installing railway@0.1.7-8     at checkEngine (/usr/local/lib/node_modules/npm/lib/install.js:570:14)
npm ERR! error installing railway@0.1.7-8     at Array.0 (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
npm ERR! error installing railway@0.1.7-8     at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:13)
npm ERR! error installing railway@0.1.7-8     at chain (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:4)
npm ERR! error installing railway@0.1.7-8     at installOne_ (/usr/local/lib/node_modules/npm/lib/install.js:548:3)
npm ERR! error installing railway@0.1.7-8     at installOne (/usr/local/lib/node_modules/npm/lib/install.js:488:3)
npm ERR! error installing railway@0.1.7-8     at /usr/local/lib/node_modules/npm/lib/install.js:425:9
npm ERR! error installing railway@0.1.7-8     at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:54:35
npm ERR! error installing railway@0.1.7-8     at Array.forEach (native)
npm ERR! error installing railway@0.1.7-8     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: express@2.4.6
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

任何帮助都将不胜感激!谢谢

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-09-16 03:17:51

(这可能是一条评论,但评论的格式是meh

为此,请执行以下操作:

代码语言:javascript
复制
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安装express。

这会将你重置到0.4.11,你应该已经准备好了。

票数 1
EN

Stack Overflow用户

发布于 2011-09-06 22:01:21

express不支持0.5

请使用0.4.x

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7321071

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档