Created
September 16, 2014 14:41
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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