isaacs/npm — pull request #2287 by gradus (2012-03-19 23:17:37+00:00)
Title: npm run as root leaves root-owned folders in ~/.npm

Addressing issue #2264

The only changes I made were adding 2 lines in the following commit to chown the target dir.
https://github.com/gradus/npm/commit/858f573daea5bc37b2d495835d488afa18c21e2e

Apologizing for my terrible git-fu.
`git fetch` and `git merge` added extraneous commits in this pull request.

Not sure if this covers all cases were npm as root is leaving root-woned folder in .npm, but it does cover the example specifically documented in issue #2264