DEV Community

Cover image for Are you a YARNer or a NPMer?
Charlie Say
Charlie Say

Posted on

Are you a YARNer or a NPMer?

An age old debate about package managers

Each have their pros & their cons

I personally prefer Yarn - I think it's general installation of packages is quicker and I REALLY appreciate its peer dependency resolution it saves LOADS of time.

So - what is your go-to package manager and why?

Latest comments (76)

Collapse
 
sean9999 profile image
Code Monk

I've come back around to npm. I think yarn should follow the way of io.js and fold into upstream

Collapse
 
ricktorrellas profile image
Rick-torrellas

PNPMer

Collapse
 
andrewbaisden profile image
Andrew Baisden

I prefer to use npm the most because it's usually the default. Otherwise my choice would be Yarn if the package has it as default.

Collapse
 
dnema09 profile image
Dheerandra Kumar Nema

NPMer

Collapse
 
drsensor profile image
૮༼⚆︿⚆༽つ

I prefer the Jurassic era
Deno meme

Collapse
 
kissu profile image
Konstantin BIFERT

I use PNPM otherwise yarn, if I want to not really care about peer dependencies.
Even tho, the latest NPM is quite fast, it's still not as good.

Collapse
 
l0uiscouture profile image
Louis Couture ❤️🏳️‍🌈🇺🇳⚜️

I use npm because it is the standards, I never gave too much toughts about it

Collapse
 
gabrieljm profile image
Gabriel José

NPM because there is no reason to change it, some people can say it is slow, but come on you are not in a race, and no it is not that slow, even more for a thing that you don't do every day. Another thing is, if you have so much dependencies that it is really slow using any tool you probably need to rethink the need of them. I could be wrong but that is what I think.

Collapse
 
pcjmfranken profile image
Peter Franken • Edited

NPM Has managed to catch up with Yarn in recent years with regards to feature set, and we don't really suffer from the "slow installation" problem Yarn claims to solve.

Sufficed to say we switched back to NPM

Collapse
 
vaivasap profile image
VaivaSap

Yarn for now. But after reading the posts of others I kinda want to explore pnpm :)...