Skip to content

Instantly share code, notes, and snippets.

@startswithaj
Created February 5, 2014 02:51
Show Gist options
  • Save startswithaj/8816698 to your computer and use it in GitHub Desktop.
Save startswithaj/8816698 to your computer and use it in GitHub Desktop.
NPM fixes
# force update npm globally
npm update -gf
# fix brew symlinks
brew unlink node && brew link --overwrite node
# give current user permissions to npm config and install global install directory
sudo chown -R `whoami` /usr/local/lib/node_modules
sudo chown -R `whoami` ~/.npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment