Npm install fails, says i don't have permission

It is a permissions-realted problem in NPM. Se related post: Unable to create server and NO_PROFILES_DOWNLOADED - #7 by JayMontana36

Use this command:

npm install --unsafe-perm