【问题标题】:Node.JS + CentOS + node-wafNode.JS + CentOS + node-waf
【发布时间】:2013-02-08 02:02:35
【问题描述】:

我在 CentOS 从源代码 上安装了 Node.JS,如下所示:

yum install gcc-c++ make git
cd /usr/local/src/
git clone git://github.com/joyent/node.git
cd node
./configure
make
make install

但通过 npm 安装模块时出现错误:

sh: node-waf: command not found
npm ERR! threads_a_gogo@0.1.5 install: `node-waf configure install`
npm ERR! `sh "-c" "node-waf configure install"` failed with 127
npm ERR! 
npm ERR! Failed at the threads_a_gogo@0.1.5 install script.
npm ERR! This is most likely a problem with the threads_a_gogo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-waf configure install
npm ERR! You can get their info via:
npm ERR!     npm owner ls threads_a_gogo
npm ERR! There is likely additional logging output above.

这个问题是否与 CentOS 相关,或者可能出了什么问题? This 链接建议仅当未从源安装 Node 时才会发生此错误....在这种情况下 它是

【问题讨论】:

  • 我遇到了同样的问题。它与 node.js 的 v0.8.19 一起工作,但当我尝试安装 v0.10.0 时停止工作。
  • 完全正确!我回滚到旧版本并开始工作,新版本一定有错误:(

标签: node.js centos npm


【解决方案1】:

node-waf 已弃用,并已从节点 0.10 中删除:https://github.com/joyent/node/issues/3475。 您应该打开您尝试使用的软件包的问题,​​以将其更新为 node-gyp。

【讨论】:

    猜你喜欢
    • 2012-09-28
    • 2011-10-26
    • 1970-01-01
    • 2018-10-08
    • 2016-03-16
    • 2015-07-07
    • 2019-01-14
    • 1970-01-01
    • 2011-10-26
    相关资源
    最近更新 更多