I am running vagrant provision
and the last step fails with "Error installing 'gulp'". See below.
What does it mean and how to resolve it? No one who ran this vagrant script ever had this issue before.
Stderr from the command:
stdin: is not a tty
[ERROR ] Command 'npm install --silent --json --global "gulp"' failed with return code: 1
[ERROR ] stdout:
> v8flags@1.0.1 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
I tried installing manually $ sudo npm install --json --global "gulp"
but it gives me an error:
> v8flags@1.0.1 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