Npm install fails, says i don't have permission

Log file It says that I don’t have permission to access that directory for some reason, but I am executing the command as root, so it makes no sense. I am confused as to what I should do, as when I tried creating a privileged account, it still failed.

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

This worked, thank you so much