【问题标题】:Install Express-on-Railway JS error安装 Express-on-Railway JS 错误
【发布时间】:2011-11-11 08:57:50
【问题描述】:

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

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

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

【问题讨论】:

    标签: node.js express npm


    【解决方案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。

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

    【讨论】:

      【解决方案2】:

      express 不支持 0.5

      请使用 0.4.x

      【讨论】:

      • 谢谢雷诺斯,太好了!如何在 Ubuntu 上指定我想默认安装和使用的分支?有没有关于它的演练或博客文章?非常感谢
      猜你喜欢
      • 2012-05-26
      • 1970-01-01
      • 2023-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多