Skip to content

Instantly share code, notes, and snippets.

@kbshl
Created September 16, 2014 14:41
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 kbshl/c8df56127bc436125e6d to your computer and use it in GitHub Desktop.
Save kbshl/c8df56127bc436125e6d to your computer and use it in GitHub Desktop.
NPM cannot install dependencies - Falls auf einem Mac Rechte Probleme beim Installieren von globalen oder lokalen NPM Packages auftreten
# Run these commands in a terminal window (note - DON'T replace the whoami part...thats a linux command to get your user!
sudo chown -R `whoami` ~/.npm
sudo chown -R `whoami` /usr/local/lib/node_modules
# ...and...if you're on a mac (like I am), and still see errors after running these commands, then run this last one and you should be good. (Recommend you try testing before you do this one. I don't like changing the permissions on the ENTIRE /usr/local directory unless it really seems necessary!)
sudo chown -R `whoami` /usr/local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment