I half-jokingly said that Node apps are the new ZIP bombs.
I half-jokingly said that Node apps are the new ZIP bombs.
I’ve never understood why they didn’t go with the Maven approach: all dependencies stored in a central location, separated by version.
This can be particularly bad when a popular package has a semver major change (even if, for example, support for an outdated version of node is dropped), many libraries will lag behind in updating to the latest major version and you will have many duplicated copies of a popular package.
- Carl Sagan
the npm ecosystem takes this quite literally, for better or worse.
Vendoring/copying them is another way to achieve this (and means you don't need to depend on npm or its lockfiles).
Regardless, those libraries are your problem whether you vendor/copy them or not.
Read more: https://research.swtch.com/deps