我正在运行vagrant provision
,并且最后一步失败,并显示“错误安装'gulp'”。见下文。Vagrant:错误安装'gulp'
这是什么意思,以及如何解决它?没有人跑这个流浪脚本曾经有过这个问题。
Stderr from the command:
stdin: is not a tty
[ERROR ] Command 'npm install --silent --json --global "gulp"' failed with return code: 1
[ERROR ] stdout:
> [email protected] install /usr/local/lib/node_modules/gulp/node_modules/v8flags
> node fetch.js
[ERROR ] stderr: sh: 1: node: not found
[ERROR ] Error installing 'gulp': sh: 1: node: not found
我尝试手动安装$ sudo npm install --json --global "gulp"
但它给了我一个错误:
> [email protected] install /usr/local/lib/node_modules/gulp/node_modules/v8flags
> node fetch.js
sh: 1: node: not found
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
我找到了解决办法:HTTP:// stackoverflow.com/questions/21168141/can-not-install-packages-using-node-package-manager-in-ubuntu – Vad 2014-10-29 21:14:30