Last active
July 13, 2016 07:20
-
-
Save astannard/0ffabfceee13d781165b89daccc39575 to your computer and use it in GitHub Desktop.
NPM permission issue resolution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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