logoalt Hacker News

whizzteryesterday at 9:32 PM1 replyview on HN

You mean like the developers holding the npm-publishing keys that just allowed a worm to spread?


Replies

skydhashyesterday at 10:40 PM

No. By NPM not allowing any package to run code on the developer's machine. I can trust npm (the software), but not the library. It's a very weird choice to just allow any package to run post install script. Especially when there's little to none verification done on npmjs side.

Developers can feel free to not secure their computer or sell their keys. But that not means npm should allow straight code push from their computers to everyone that has downloaded their library.