Last active
December 27, 2015 14:49
-
-
Save pavelbinar/7343002 to your computer and use it in GitHub Desktop.
Terminal: Fix NPM installation rights
This file contains 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
# Source: http://stackoverflow.com/questions/16151018/npm-throws-error-without-sudo | |
# This looks like a permissions issue in your home directory. To reclaim ownership of the .npm directory execute | |
sudo chown -R `whoami` ~/.npm | |
# Also you will need the write permission in node_modules directory: | |
sudo chown -R `whoami` /usr/local/lib/node_modules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment