Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> if your program uses 4 npm packages and they all list jquery as a dependency, you now have 4 versions of jquery installed on your machine

This is not true in npm v3: it now flattens the dependency tree and only duplicate dependencies if there are incompatible versions required.[1] Granted, if those four packages all depended on jQuery locked to different specific versions, then you would end up with four nested versions of jQuery.

[1]: https://docs.npmjs.com/how-npm-works/npm3



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: