Hacker News new | ask | show | jobs
by dmpk2k 4762 days ago
That's odd.

I've worked with node for a couple years. I've used npm hundreds of times, and I can count on one hand the number of times I've used it in combination with sudo (and all but one were a mistake).

  ~/dev $  ls /usr/local/lib/node_modules/
  jsontool npm
Every time I've used npm with sudo I've received a big warning in red to not do that.
1 comments

Which version are you using? And do you install packages globally using the -g switch?
Currently 1.2.11. As you can see above, I've only ever installed one package globally (jsontool).