DEV Community

Jason F
Jason F

Posted on Edited 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)

ðŸ“Ē āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™: juniordevforlife/yarn or npm which do you use and why bjc - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ”
 
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.

ðŸ“Ē āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™: juniordevforlife/yarn or npm which do you use and why bjc - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ”
 
cadams profile image
Chad Adams •

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

ðŸ“Ē āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™: juniordevforlife/yarn or npm which do you use and why bjc - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ”
 
thefern profile image
Fernando B 🚀 •

I use pnpm because packages are downloaded once only.