4 ms·
Is that due to yarn v2 including a zipped version of all the dependencies that you can check into the repo? Because that is what I plan to do. Such a pain when
by jjeaff 5y ago
Is that due to yarn v2 including a zipped version of all the dependencies that you can check into the repo?
Because that is what I plan to do. Such a pain when some random dependency 50 packages deep is broken or even pulled from npm and so we can't even finish a deployment build until fixed. Especially for older projects.
- crubier 5y agoIt’s is first and foremost due to the “mathematically correct” (or at least “more correct”) resolution algorithms used in yarn. And it is further improved by the local caching of packages indeed. Note that you can even be in “zero install” mode with yarn, where you checkout in git this dependency cache, so you never have to “yarn install”, got checkout is enough to get everything. If npmjs.com falls down you wouldn’t be in any trouble.