Skip to content

Instantly share code, notes, and snippets.

@astannard
Last active July 13, 2016 07:20
Show Gist options
  • Save astannard/0ffabfceee13d781165b89daccc39575 to your computer and use it in GitHub Desktop.
Save astannard/0ffabfceee13d781165b89daccc39575 to your computer and use it in GitHub Desktop.
NPM permission issue resolution
As per photusenigma at: https://github.com/npm/npm/issues/4815
Run these commands in a terminal window (note - DON'T replace the $USER part...thats a linux command to get your user!):
sudo chown -R $USER ~/.npm
sudo chown -R $USER /usr/local/lib/node_modules
...and...if you're on a mac (like I am), and still see errors after running these commands, then run this last one and you should be good. (Recommend you try testing before you do this one. I don't like changing the permissions on the ENTIRE /usr/local directory unless it really seems necessary!)
sudo chown -R $USER /usr/local
for yeoman I needed with Username being yours:
sudo chmod g+rwx /Users/Username/.config /Users/Username/.config/configstore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment