DEV Community

loading...

Discussion on: Migrating from NPM to Yarn

Collapse
angelomiranda profile image
angelo.miranda

npm is catching up nicely or has caught up with yarn already.

What is the advantage or use case of converting to yarn now?

Collapse
andreidascalu profile image
Andrei Dascalu

It has in terms of features. I have a proiect (fairly large scale) where migrating from npm 7.4 to yarn cut the build time in almost half.
I'm not an expert in the intricacies of either but given the pretty "out of the box" approach in both instances, I'll take the change (even if there was an optimization that could be done to configure npm better)

Collapse
lyrod profile image
Lyrod

pnpm is for me, the faster package manager. I use. I use it for all my open source project

Collapse
angelomiranda profile image
angelo.miranda

i see. that is significant change. i would see myself migrating as well. thanks.

Collapse
lyrod profile image
Lyrod

I would like to know how many time you save with "pnpm" !

Thread Thread
andreidascalu profile image
Andrei Dascalu

By the way, I found this: reddit.com/r/learnjavascript/comme... - if you look at the last comment, someone did a benchmark of Yarn2 vs pnpm about 4 months ago, so it should be fairly relevant.