3 ms·
"dependency resolution depends on install order" Does this sound insane to anyone else? EDIT: I understand not wanting to modify node's `require` semantics, b
by tlrobinson 11y ago
"dependency resolution depends on install order"
Does this sound insane to anyone else?
EDIT: I understand not wanting to modify node's `require` semantics, but this is an unacceptable sacrifice of consistency for efficiency. Surely it would have been possible for an `npm install --save x` to put the `node_modules` directory in a state identical to `npm install --save x && rm -rf node_modules && npm install`. It might take a little longer to shuffle some directories around, but certainly not longer than a full `npm install`.
- hakcermani 11y agoTotally. That was the first thing that stuck out to me.
- paulddraper 11y agoSurely they will have to change that. Right? It can't last long.
- frank-weindel 11y agoWhat's more is that standard `npm install` install order is ALWAYS alphabetic. Which causes some packages, purely arbitrarily, to influence directory structure.