Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Does NPM cache all versions it ever distributed?

Yes it does, that's the whole point. You can still go and install the first version of express ever put on npm from 12 years ago. You can also install any of the 282 releases of it that have ever been put on npm since then. That's the whole point of a registry, it wouldn't be useful if things just disappeared at some random point in time.

The only packages that get removed are malware and such, and packages which the vendor themselves manually unpublish [0]. The latter has a bunch of rules to ensure packages that are actually used don't get removed, please see the link below.

[0] https://docs.npmjs.com/policies/unpublish



IIRC there is a package whose whole point is to include everything else in its package.json and make them ineligible for unpublish.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: