[npm] On npm install: Unhandled rejection Error: EACCES: permission denied

Above answer didn't work for me. Just try to run your command with --unsafe-perm.

e.g

npm install -g node@latest --unsafe-perm

This seems to solve the problem.