isaacs/npm — Issue #2208: sudo npm install <module> cache permissions
Author: totallymike
Created: 2012-02-28 05:24:33+00:00
State: open

cd ~; sudo npm install express

installs express to one's local ~/node_modules directory, as well as creates ~/.npm/express, however the owner of

~/.npm/express/2.5.8/package

and

~/.npm/express/2.5.8/package.tgz

is set to root.