DEV Community

Cover image for Why upgrade to Yarn Berry?

Why upgrade to Yarn Berry?

Ashutosh Kumar on April 27, 2023

Yarn is a package manager that has gained popularity in the JavaScript community due to its speed, reliability, and ease of use. It was initially r...
Collapse
 
ankurk91 profile image
Ankur K

I switched to pnpm.
I no longer recommand yarn

Collapse
 
raxraj profile image
Ashutosh Kumar

Oh but yarn Berry is just beautiful to see at work. And I dunno even the yarn v1 is beautiful. I dunno pnpm is just too hyped according to me, probably cause it's newer. At the end what suits your team and your project that's what matters.

Collapse
 
eshimischi profile image
eshimischi

Well, first it is not hyped.. Vue community and a lot of projects on Github chose pnpm and workspaces as a tool, it speaks for itself

Thread Thread
 
raxraj profile image
Ashutosh Kumar

Alright buddy!
I'd say Pnpm is better. I'm a yarn user. I love to make case for it. :)

Thread Thread
 
eshimischi profile image
eshimischi

Not here to disrespect your choice, up to you as i said. Everyone is choosing what is best for them. I’m just see Github tendency the last year and what community does prefer

Thread Thread
 
chadgauth profile image
Chad Gauthier

sometimes people just choose what is familiar not best

Collapse
 
eshimischi profile image
eshimischi

No need for either yarn or npm, use pnpm instead

Collapse
 
raxraj profile image
Ashutosh Kumar

Hihihi I wish I could agree. I really do.
I was using pnpm in my few projects, and I dunno how to explain this. Yarn felt more Natural. It just did.

Collapse
 
eshimischi profile image
eshimischi

It’s up to you. Pnpm has less files in node_modules and faster, to speak about pros

Thread Thread
 
raxraj profile image
Ashutosh Kumar

It doesn't have less files. It's just it has less folders to see on the top level of node modules. I'd run test over test I'll always find that Yarn is faster.
Probably pnpm suits you more than anything.

Thread Thread
 
eshimischi profile image
eshimischi

Again it is your experience, never ever saw yarn being faster, so.

Thread Thread
 
raxraj profile image
Ashutosh Kumar

Probably just my experience.
I'd enjoy the yarn as long as I can till the day I switch to something better 😁😁😁

Thread Thread
 
eshimischi profile image
Thread Thread
 
raxraj profile image
Ashutosh Kumar

This is from the article I can see at times yarn PNP is faster, other times Yarn, other times Pnpm and even npm gets like 3 times faster compared to both the other times.

I'd like to conduct a test and benchmarks with proper investigation. Let's do it man! Let's actually settle this.

Collapse
 
devgancode profile image
Ganesh Patil

Package managers are essentials to learn and I started with npm but still not figuring out should I shift to yarn or continue with npm?

Collapse
 
raxraj profile image
Ashutosh Kumar

If you have just started and you're not into any hardcore project you can sure continue with npm, that should be fine the transition to yarn isn't a giant leap as well. So why not just see what it has to offer and choose yourselves.