2014-02-10 85 views
1

我试图在amazon ec2实例上安装npm。在ec2上安装npm会返回127错误

我已经安装了Git和node.js的在我的实例

我所输入的是这些

git clone git://github.com/joyent/node.git 
cd node 
git checkout v0.10.20 
./configure 
make 
sudo make install 
git clone https://github.com/isaacs/npm.git 
cd npm 
sudo make install 

但最终会与此错误

rm -rf \ 
    .building_ronn \ 
    html/doc \ 
    html/api \ 
    man 
scripts/doc-build.sh doc/api/npm-test.md man/man3/npm-test.3 
make[1]: Entering directory `/home/ec2-user/npm' 
node cli.js install ronn --no-global 
bash: node: command not found 
make[1]: *** [node_modules/.bin/ronn] Error 127 
make[1]: Leaving directory `/home/ec2-user/npm' 
make: *** [man/man3/npm-test.3] Error 2 
+0

你为什么要安装NPM?它与node.js – vinayr

+0

捆绑在一起。另外,如果在configure,make和make install之间使用'&&',则可以确定在下一个进程启动之前会成功完成。看起来,无论是构建Node.js都不成功,或者其安装位置不在您的$ PATH中。 –

回答