Node.JS + CentOS + node-waf

我已经在 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相关,或者可能出现什么问题? 这个链接表明,这个错误应该只发生,如果节点不是从源安装….在这种情况下, 它是

       

网上收集的解决方案 "Node.JS + CentOS + node-waf"