3 ms·
Isn't that the whole reason there is a package.json? That way, people just run npm install and already have all the necessary dependencies.
by arik-so 10y ago
Isn't that the whole reason there is a package.json? That way, people just run npm install and already have all the necessary dependencies.
- leichtgewicht 10y agoYes, a package.json is good to get the required dependencies. This article is about possible dependencies that help in cases where you all the possible would mean a huge load on the system.
- flukus 10y agoIf you can use a package without them then they aren't really dependencies are they?
- leichtgewicht 10y agoTrue, how should those things be called?
- myhf 10y agoA good example is Consolidate, which provides a consistent API to various template libraries. You wouldn't want to force installation of all the unused libraries. https://github.com/tj/consolidate.js https://github.com/tj/consolidate.js
- leichtgewicht 10y agoWill add a link to the "other problems" list, thanks!
- yid 10y agoHow is it a huge load on the system given that node can lazy load modules? Do you mean disk space?