npm throws error /usr/bin/env: node: No such file or directory

If the nodejs server was installed via the package manager, it is not in:
/usr/bin/env/node,
it is in:
/usr/bin/env/nodejs

To solve this problem, you should set a symlink

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

credits for this hint: digitalmediums at github