NPM Update Crashes Linux Systems and in some cases forces re-installation
The bug was first reported by users and following that the NPM development team released a quick patch NPM v5.7.1 that fixes the glitch. FreeBSD users have also reported being impacted by the bug. Mac and Windows users didn’t experience any issues. The problem did not affect every Linux user.
Running the npm update commands as root doesn’t result in npm trying to reassign root ownership to all files, so the issue appears to affect only npm update operations prefixed by a sudo command.
Which brings up the serious issue of testing releases prior to going to the public. This was a pretty bad bug that would affect a lot of servers, so in hindsight you do hope NPM learned their lesson but this is not the only company that doesn’t really perform heavy QA testing.