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.

Discussion (3)

redhoodjt1988 profile image

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.

thefern profile image
Fernando B πŸš€

I use pnpm because packages are downloaded once only.

chadalen profile image
Chad Alen

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