/usr/bin/env: node: No such file or directory

If running npm commands gives you the following error "/usr/bin/env: node: No such file or directory", try to use the following command to fix it:

# ln -s /usr/bin/nodejs /usr/bin/node

This is archived version of blog, preventing broken links. This version will stay online indefinitely.