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
 
thefern profile image
Fernando B 🚀

I use pnpm because packages are downloaded once only.

Collapse
 
cadams profile image
Chad Adams

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