3 ms·
Package managers end goal was the user to use the package, so it was good that they were installed globally. npm goals, as a tool for devs, includes having proj
by franciscop 4y ago
Package managers end goal was the user to use the package, so it was good that they were installed globally. npm goals, as a tool for devs, includes having projects self-contained and not interfere with each other, which is pretty different goal and thus having a local node_modules has multiple advantages instead of installing everything globally. Kinda how docker or virtual machines work, but just for packages.
- jonny_eh 4y agoI was under the impression that Node (and the node_modules folder) predated NPM. So NPM was just going along with the concepts laid down by Node.