2 ms·
Author here. npm5 was released months after this was written. (A breath of fresh after the npm3 had -- look it up -- intentionally non-determinstic versioning b
by paulddraper 9y ago
Author here. npm5 was released months after this was written. (A breath of fresh after the npm3 had -- look it up -- intentionally non-determinstic versioning based on install history.)
If you read the whole article, I conclude with recommending lockfiles and npm shrinkwrap, the traditional JS lockfile solution. Yarn is the new kid and awesome and deserves mention too.
Lockfiles are an appropriate choice for JS because of unique dependency loading. For Java and many other ecosystems, fixed versions are appropriate because they automatically deduplicate.
There are pros and cons. The absolute most important thing is to achieve determinism. Programming is hard enough as it is.
- yuchi 9y agoHi Paul, thank you for your response here, could you please update the article with some references to the new options available? Would be great if included info for all platforms, not only npm/yarn :)