安装 Express-on-Railway JS 错误

发布于 2024-12-03 02:18:21 字数 3251 浏览 1 评论 0原文

当我尝试安装 Express-on-Railway JS 框架时出现此错误,请帮忙: https://github.com/1602/express-on-railway

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

任何帮助都会高度赞赏!谢谢

I have this error when I try to install Express-on-Railway JS framework, please help:
https://github.com/1602/express-on-railway

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

Any help would be highly appreciated! Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

失去的东西太少 2024-12-10 02:18:21

Express不支持0.5

请使用0.4.x

express does not support 0.5

Please use 0.4.x

三人与歌 2024-12-10 02:18:21

(这本来是一条评论,但评论格式很普通

。要执行此操作:

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 installexpress。

这会将您重置为 0.4.11,您应该准备好摇滚了。

(this would have been a comment but comment formatting is meh

To do this:

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

Then npm install express.

That will reset you to 0.4.11 and you should be ready to rock.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文