4 ms·
One use case is downloading of binaries. For example mongo-memory-server [0] will download the mongoDB binary after you have installed it. [0] https://www.npmj
by vorticalbox 1y ago
One use case is downloading of binaries. For example mongo-memory-server [0] will download the mongoDB binary after you have installed it.
[0] https://www.npmjs.com/package/mongodb-memory-server https://www.npmjs.com/package/mongodb-memory-server
- 8note 1y agowhy would i want that though, compared to downloading that binary in the install download? the npm version is decoupled from the binary version, when i want them locked together
- jonhohle 1y agoI think it falls into a few buckets: A) maintainers don’t know any better and connect things with string and gum until it most works and ship it B) people who are smart, but naive and think it will be different this time C) package manager creators who think they’re creating something that hasn’t been done before, don’t look at prior art or failures, and fall into all of the same holes literally every other package manager has fallen into and will continue to fall into because no one in this industry learns anything.
- madeofpalk 1y agoAnd now optional dependencies negate the need for this. Your package manager can just download platform-specific binaries automatically https://docs.npmjs.com/cli/v7/configuring-npm/package-json#optionaldependencies https://docs.npmjs.com/cli/v7/configuring-npm/package-json#o...