Blindly downloading code
>> it was downloaded about 1,500 times in a week, integrated into hundreds of developer workflows
And nobody noticed? Is this another case of developers just downloading code they find on the internet, plugging it in, and turning it on? There are a LOT of bad developers out there. And they would be the first to complain that "npm should have done a better job", shifting the blame.
Maybe the idea of "all the packages in one place" is not such a good idea. If you want the bobby package, it is only available on the bobby web site. If you get it anywhere else, treat it as somebody else's code. Sure, it's less convenient. But it should reduce this sort of incident.
This isn't just a Node problem. I can imagine the same thing happening with CPAN. Or pypi. Or Rust. Or Go. Or all the others.