简体   繁体   English

Node.JS + CentOS + node-waf

[英]Node.JS + CentOS + node-waf

I have installed Node.JS on CentOS from source like this: 我已经安装了Node.js的CentOS上这样的来源

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

yet while installing modules via npm I get error: 然而,当通过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.

is this issue CentOS related, or what is possibly going wrong? 这个问题是CentOS相关的,还是可能出错的? This link suggests that this error should only happen if Node is not installed from source....which in this case it is . 链接表明只有在未从源安装Node的情况下才会发生此错误....在这种情况下它是

node-waf is deprecated and was removed from node 0.10: https://github.com/joyent/node/issues/3475 . node-waf已弃用,已从节点0.10中删除: https//github.com/joyent/node/issues/3475 You should open an issue with the package you are trying to use to get it updated to node-gyp. 您应该尝试使用要将其更新为node-gyp的软件包的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM