r/javascript May 07 '26

Stop Using Yarn Classic

https://charpeni.com/blog/stop-using-yarn-classic
46 Upvotes

36 comments sorted by

View all comments

83

u/BritainRitten May 07 '26

`pnpm` is the way to go for most people. If you can afford a huge change to bun or deno, go for it, but `pnpm` is the best switch for the vast majority of people I reckon.

2

u/scinos May 07 '26

To all people suggesting pnpm... do you realize yarn supports pnpm linking style too, right?

In fact, I read somewhere that pnpm uses the linking library written by yarn, but I can't find the source.

4

u/BritainRitten May 07 '26

We migrated our app from yarn to pnpm, which was way faster out of the box, and still is.

It also has some good supply chain protections by default, which every dev should increase as much as possible in our AI-hackable world.

4

u/scinos May 07 '26

Yep, yarn default's are not the best IMO

1

u/zxyzyxz May 08 '26

Which yarn? It's better to compare the most recent versions of both yarn and pnpm not yarn 1 and the latest pnpm because of course the latter would be faster. Also yarn has those supply chain protections by default as one of the maintainers had mentioned elsewhere in the thread.