

This can really screw things up for you if you try to do npm in the same directory or project later on.

I feel that this needs a bit of a rehash since I’ve learned some new techniques for managing Node.js and global modules on my development machine. That is to say, you should never do sudo npm … anything. This is a rehash of an article I wrote in 2015 about how you shouldn’t use the sudo command with npm.
