NODE.JS: sh: 1: node: Permission denied

You might be getting this one when running commands as root:

sh: 1: node: Permission denied

If you're really sure what you're doing, you may try to run these to "fix":

npm config set user 0
npm config set unsafe-perm true