The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
OSC install error: "EACCES: permission denied"
hope i might be able to get some help with this. im fairly new to npm, and was directed to this forum for advice.
i am installing osc into node-red and i am getting an issue from npm during the install. it looks like this error message is my primary problem:
Unhandled rejection Error: EACCES: permission denied, mkdir '/Users/"------"/.npm/_cacache/index-v5/91/0f
i can provide the full error log if needed. has anyone here expereinced this kind of issue with OSC before.
There is an open issue with installing global packages using sudo leaving behind files with the wrong ownership.
The short version is run this to fix the ownership, then try your install again:
sudo chown -R $(whoami) ~/.npm
The long version and canonical bug is: Global installs (sudo npm i -g) fail on Mac after 6.5 upgrade. Works fine after 6.4.1 downgrade.