Ah that all makes a lot of sense. We've recently gone through a process of doing that at work.
, here's a real world example that occurred yesterday.
Why people run npm with sudo makes no sense to me as you don't need to.
I Am Devloper
"You get root access! You get root access! You get root access! You get root access! Everybody gets root access!" Oprah exclaimed. "Everybody gets root access! Everybody gets root access!"
16:38 PM - 23 Feb 2018
In this particular case, by giving npm too much privilege, it wreaked havoc on Linux file systems, Show-stopping bug appears in npm Node.js package manager | ZDNet.
Had npm been run with a non-root user (least privilege), this would not have happened. The issue has since been fixed with a patch.
New npm release!next: 5.7.1latest: 5.6.0This fixes an issue for folks running with `sudo` in system directories.For all the details:github.com/npm/npm/releas…
17:33 PM - 22 Feb 2018
I have to admit I hate NPM. I've scrapped entire boxes and started over because I've messed up an NPM install. It always feels more like sorcery than actual Dev ops. Always advise developers to be careful with Node and NPM.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.