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