Live data from Hacker News

Npm install could be dangerous

github.com

1–10 of 100 posts

Re: Npm install could be dangerous

#7
This applies to pretty much every pkg manager ever created.

That's why it's important to have end-to-end package signing with a reasonable UI, so people can choose to selectively trust the sources they need and get alerted before new dependencies get pulled in.

Sadly I don't know of any pkg manager that implements this correctly.

Re: Npm install could be dangerous

#10
awareness for this is always good many now just have scripts doing curl blah | sudo and expecting the blah url will always serve the content they expect. signed versions seems to be the current best way to not have problems, even thus its not perfect.

And of course, most things like npm either dont support this or dont support it well, or nobody cares about it

Post reply on HN