DEV Community

Jason F
Jason F

Posted on

Yarn or npm? Which do you use and why?

I've been using npm since I started learning web development. I've been curious about yarn. I'd be interested in hearing other people's perspectives and use cases.

Top comments (3)

Collapse
Β 
redhoodjt1988 profile image
Jonathan Reeves β€’

I use Yarn more than NPM asost of my day to day is using React or React Native and so I just kind got used to using it. I also talked the devs aty work into using it. The documentation for the backends framework we use, NestJS, also supports yarn so it makes it easier to install packages.

Collapse
Β 
cadams profile image
Chad Adams β€’

I prefer yarn because its faster. Also I love the interactive upgrade feature.

Collapse
Β 
thefern profile image
Fernando B πŸš€ β€’

I use pnpm because packages are downloaded once only.