Skip to content

Instantly share code, notes, and snippets.

@rodleviton
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodleviton/13306cfe69312c3d4b93 to your computer and use it in GitHub Desktop.
Save rodleviton/13306cfe69312c3d4b93 to your computer and use it in GitHub Desktop.
NPM Sudo Fix
# You need to reclaim ownership of the .npm directory
sudo chown -R <username> ~/.npm
# And need the write permission in node_modules directory
sudo chown -R <username> /usr/local/lib/node_modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment