Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rapliandras's avatar

NPM installer with gulp: "weird error 127"

I'm screwed with the gulp installation. Could easily install on Ubuntu 14.04 LTS NPM 1.4, but not on Ubuntu 14.04 LTS NPM 1.3. 1.3 should be enough though. I'm getting this strange error. Have you seen anything like this?

npm http GET https://registry.npmjs.org/flagged-respawn

> v8flags@1.0.8 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

npm ERR! weird error 127
0 likes
1 reply
rapliandras's avatar
rapliandras
OP
Best Answer
Level 3

And I already found it, but cannot delete this thread.

apt-get install nodejs-legacy

Please or to participate in this conversation.