在以前运行的基础架构上运行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
答案 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