I have a local development server where I test a lot of things, now I\'m playing with bower to manage the libraries\' dependencies in my Symfony2 project. After getting Node
I fixed a similar problem by changing the directory permissions:
sudo chown -R $USER:$GROUP ~/.npm sudo chown -R $USER:$GROUP ~/.config