Skip to content

Instantly share code, notes, and snippets.

@cgkio
Created November 1, 2013 21:23
Show Gist options
  • Save cgkio/7272182 to your computer and use it in GitHub Desktop.
Save cgkio/7272182 to your computer and use it in GitHub Desktop.
Setup permanent sudo for /usr/local (home of npm)
$ sudo chown -R $USER /usr/local
# Sets your user account as the owner of the /usr/local directory, so that you can just issue normal commands in there. Then you won't ever have to use sudo when you install node or issue npm commands.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment