Error when installing angular-seed on Ubuntu: this failure might be due to the use of legacy binary
Source

Error when installing angular-seed on Ubuntu: this failure might be due to the use of legacy binary

Last updated:

Upon trying to run npm install to download and install dependencies for the angular-seed app, I've gotten an error saying something about a legacy version of node:

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! not ok code 0

This error happens when your system (most likely Ubuntu or Debian) call the NodeJS executable nodejs instead of just node. You can solve this by installing nodejs-legacy:

$ sudo apt-get install nodejs-legacy

Keep in mind that you might need to run npm install a couple of times since there are a few errors, too.

References:

Dialogue & Discussion