Skip to content

Instantly share code, notes, and snippets.

@RyanCCollins
Created January 18, 2016 17:28
Show Gist options
  • Save RyanCCollins/863d8965b4bb2ecafb84 to your computer and use it in GitHub Desktop.
Save RyanCCollins/863d8965b4bb2ecafb84 to your computer and use it in GitHub Desktop.
NPM Install without SUDO

NPM install without SUDO

It's easy! Just change permissions on the .npm directory as shown below.

Try this:

sudo chown -R $(whoami) ~/.npm

Or this:

sudo chown -R $USER /usr/local/lib/node_modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment