Skip to content

Instantly share code, notes, and snippets.

@pavelbinar
Last active December 27, 2015 14:49
Show Gist options
  • Save pavelbinar/7343002 to your computer and use it in GitHub Desktop.
Save pavelbinar/7343002 to your computer and use it in GitHub Desktop.
Terminal: Fix NPM installation rights
# 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