Node.js and nodejs

run npm command gives error “/usr/bin/env: node: No such file or directory”

I’ve found this is often a misnaming error, if you install from a package manager you bin may be called nodejs so you just need to symlink it like so “ln -s /usr/bin/nodejs /usr/bin/node”

Full story

https://github.com/joyent/node/issues/3911

Advertisements