Hacker News new | ask | show | jobs
by homulilly 3039 days ago
It's bad, but at the same time it's hard to blame people doing it too much when it's literally in the npm documentation: https://docs.npmjs.com/troubleshooting/common-errors
1 comments

I am not blaming people, maybe my comment wasn't formulated properly. What I meant is "don't do it, there is an alternative".

I think no documentation should ever include sudo in their commands. You should put a note "depending on your environment, some of those commands might require root privileges" or something.