当前位置 : 主页 > 网页制作 > Nodejs >

Node.JS CentOS node-waf

来源:互联网 收集:自由互联 发布时间:2021-06-16
我在CentOS上安装了Node.JS,如下所示: yum install gcc-c++ make gitcd /usr/local/src/git clone git://github.com/joyent/node.gitcd node./configuremakemake install 然而,当通过npm安装模块时,我收到错误: sh: node-waf: c
我在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-waf,并将其从节点0.10: https://github.com/joyent/node/issues/3475中删除. 您应该尝试使用要将其更新为node-gyp的软件包的问题.
网友评论