News for hackers. Stuff that matters.
Re:Do not use NPM 5.7 by rad88 on Thursday February 22, 2018 @12:59PM (#16439650)
If he'd tested it beforehand the comment might instead be "this destroyed my laptop".

You have a responsibility to test before releasing to production, yes. But the amount of fucked up your program has to be for `sudo ___ --help` to wreck the operating system, the unexpectedness of that result... IMO attention should be focused here on the irresponsibility of the npm team, not their users.

Re:Do not use NPM 5.7 by mrguyorama on Thursday February 22, 2018 @01:18PM (#16439848)
The fact that --help can actually DO something makes me quite upset.

That means npm is causing side effects even before reading what the user wants, or is blatantly ignoring the user's request

Re:Do not use NPM 5.7 by Humdeee on Thursday February 22, 2018 @04:59PM (#16441846)
This may be the only time I'll see accessing --help docs result in borderline malware (it's debatable that this 'sudo commandeering' was intentional by design, but as shortsighted as it gets...)