安装节点上的Puphpet配置失败

时间:2015-09-18 12:39:12

标签: node.js puphpet

在以前运行的基础架构上运行vagrant up失败,并显示以下错误

==> default: Error: Command npm is missing
==> default: Error: /Stage[main]/Puphpet_nodejs/Package[express]/ensure: change from absent to present failed: Command npm is missing

1 个答案:

答案 0 :(得分:2)

查看VM“/. puphpet-stuff/node_install.sh”中的负责脚本,看来用于获取最新节点版本的URL不再存在,这会导致此失败。

我找到了正确的网址(最近可能在nodejs.org网站上进行了更改,并在文件中进行了替换,现在可以正常使用。

vagrant ssh
sudo vim /.puphpet-stuff/node_install.sh

并更改

http://nodejs.org/dist/latest/SHASUMS.txt

http://nodejs.org/dist/latest/SHASUMS256.txt