Apart from being a terrible bug, the lesson here should be never run npm with sudo. John Hardy Lambda February 23, 2018 1 Minute Apart from being a terrible bug, the lesson here should be never run npm with sudo. Share this: Click to share on X (Opens in new window) X Click to share on Facebook (Opens in new window) Facebook Like Loading... Related Published by John Hardy Closures are a poor man's object. Objects are a poor man's closure. View all posts by John Hardy Published February 23, 2018
I mean, duh, but I’m always startled by the number of tutorials that use `sudo npm -g` LikeLike Reply
I mean, duh, but I’m always startled by the number of tutorials that use `sudo npm -g`
LikeLike
Larry Lade yes it’s a very widespread practice.
LikeLike
groupadd npm
useradd npmadmin -g npm
sudo -u npmadmin -g npm
npm …
LikeLike
Is there a bug ticket we should be voting up?
LikeLike