When I try to do a local install (eg. npm install socket.io
), it's putting the module in the ~/src/node_modules/
folder. npm root
reports this folder as well. I must have screwed up npm's settings during some bleary eyed late night session, but I can't figure out how to get it set back to ./node_modules
as the default. Anyone know what I screwed up, and how to set it back to the default?
Update
I have tried npm config set root ./node_modules
but npm root
still reports ~/src/node_modules
as the root. I also checked .bash_profile and no node related settings are being made in it.