Skip to content

Instantly share code, notes, and snippets.

@dominicthomas
Created October 22, 2013 20:19
Show Gist options
  • Save dominicthomas/7107436 to your computer and use it in GitHub Desktop.
Save dominicthomas/7107436 to your computer and use it in GitHub Desktop.
Use after a fresh node install to make sure root and admin have group ownership and write permissions to the said folders. This ensures you can run 'npm install -g' without have to use sudo.
cd /usr/local/lib/
sudo chown -R :admin node_modules/ node/ dtrace/
sudo chown -R root node_modules/ node/ dtrace/
sudo chmod g+x node_modules/ node/ dtrace/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment