Yarn
Reasonable, with limits. 9th of 10 package managers and monorepo tools.
Yarn (Berry, v4.x) is a mature package manager with strong workspaces, constraints, Plug'n'Play and zero-installs, and new safe defaults in 2026: install scripts are off by default and very new package versions are held back for a day. For most new projects pnpm now does the same job with less friction. Yarn is in the middle of a Rust rewrite (Yarn 6, still a preview), so it is a reasonable choice rather than the default.
Best for: Teams that already run Yarn Modern, or large monorepos that want strict Plug'n'Play resolution, constraints and zero-installs.
Scores
Overall6.4
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
Yarn 4 is a capable, maintained package manager with leading security defaults and strong monorepo features. pnpm does the same job with less friction, more momentum and much more development activity. Yarn's low commit volume and the unsettled Rust transition also weigh on it. It stays a sound choice for teams that already use it, but it is rarely the first pick for new work.
- peers pnpm downloads: pnpm downloads grew about 9x in a year
- dev.to/jtorchia/pnpm-vs-npm-vs-yarn-in-2026-i-ran-all-three-on-my-real-monorepo-and-it-forced-me-to-change-my-mind-9mc: Independent tester prefers pnpm
- v6.yarnpkg.com/blog/2026-01-28-yarn-6-preview: Major rewrite still in progress
GPT-6.2 Sol: 7.3, likely 6.2 to 8.3
Yarn 4 is a strong choice when strict dependency resolution or enforceable workspace policy solves a concrete problem. For most new monorepos, pnpm’s familiar node_modules layout, flexible workspace filtering, and stronger adoption trend make it the better default. Yarn’s next major transition and the incomplete counts of modern Yarn users leave room for the recommendation to move.
- yarnpkg.com/features/constraints: Shows how teams can enforce dependency and manifest rules across workspaces.
- yarnpkg.com/features/pnp: Documents strict resolution and the additional setup it can require.
- pnpm.io/filtering: Documents pnpm selectors for changed packages, dependencies, and dependents.
- peers pnpm and medianDownloadsRatio: pnpm is gaining faster on the available adoption measures.
- yarn6.netlify.app/concepts/yarn-6: The planned move from Yarn 4 through Yarn 5 to Rust-based Yarn 6 is still in progress.
Needed by many7.6
How many developers need a tool for this job?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Almost every JS/TS project needs a package manager, and many need monorepo support. Yarn's own approach, Plug'n'Play with zero-installs, appeals to a smaller group than plain node_modules installs. Yarn can also install with node_modules, which keeps its breadth high.
- category job: Package managers are needed in nearly every project
- betterstack.com/community/guides/scaling-nodejs/pnpm-vs-bun-install-vs-yarn: PnP needs the biggest migration effort of the three
GPT-6.2 Sol: 8.2, likely 7.1 to 9.1
Dependency installation is routine across JavaScript and TypeScript projects, and Yarn works for single packages as well as monorepos. Its three linkers let it serve projects with different tooling requirements. The range reflects how many teams need Yarn’s particular strengths in strict resolution and workspace policy.
- yarnpkg.com/features/linkers: Documents Plug’n’Play, conventional node_modules, and a linked node_modules layout.
- yarnpkg.com/features/workspaces: Covers workspace linking, constraints, focused installs, and script execution.
- 2024.stateofjs.com/en-US/libraries/monorepo_tools: Shows professional demand for workspace tooling and a sizable group using none.
Helps a lot7.5
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Yarn 4 has rich features: constraints, plugins, catalogs, staged publishing, age gating and good workspace commands. Independent reviewers still report PnP friction with common tools and docs that assume expert readers. pnpm gives most of the same benefits with fewer compatibility problems.
- github.com/yarnpkg/berry/releases: 4.14 to 4.18 added staged publishing, package maps and safer defaults
- dev.to/jtorchia/pnpm-vs-npm-vs-yarn-in-2026-i-ran-all-three-on-my-real-monorepo-and-it-forced-me-to-change-my-mind-9mc: Hands-on test found PnP friction and weak docs, and preferred pnpm
- betterstack.com/community/guides/scaling-nodejs/pnpm-vs-bun-install-vs-yarn: Praises plugins, constraints and zero-installs
GPT-6.2 Sol: 7.9, likely 6.9 to 8.9
Yarn 4.18.1 combines strict dependency checks, clear resolution errors, and documented commands for workspace scripts and releases. Plug’n’Play performed well in independent install tests, with results varying by linker and workload. Editor setup and version-specific commands add friction for TypeScript users and coding agents. Teams that need cached build outputs still need a task runner.
- github.com/yarnpkg/berry/releases: Confirms 4.18.1 and documents recent install and versioning fixes.
- yarnpkg.com/features/pnp: Explains dependency errors, editor setup, and React Native and Expo limits.
- repositorio.ufc.br/ri/bitstream/riufc/83080/1/2025_tcc_rvalima.pdf: Independent Windows and Linux tests found fast installs with Yarn 4 Plug’n’Play.
- backstage.io/docs/tutorials/yarn-migration: Documents changes to commands and deployment workflows between Yarn Classic and Yarn 4.
- turborepo.dev/docs/crafting-your-repository/configuring-tasks: Shows the build scheduling and output caching a separate runner adds.
Holds up over time6.4
Will it still be a good choice in two years?
Claude Opus 5.5: 6.0, likely 4.0 to 7.0
There were 10 releases in the last year and the code was pushed a day before the data was read, so the project is maintained. Commit volume is low, though, and the work leans on one lead maintainer, with Datadog backing. The Rust rewrite to Yarn 6 has been in preview since January 2026, missed its Q3 target, and brings transition risk. Node.js no longer bundling Corepack also makes installing Yarn harder.
- github commitsLastYear: 100 commits, against thousands for pnpm and Bun
- github releasesLastYear: 10 releases, latest 4.18.1 in Sept 2026
- v6.yarnpkg.com/blog/2026-01-28-yarn-6-preview: Rust port, stable not expected before Q3 2026, Datadog uses previews
- Node.js Corepack decision: Node 25+ stopped shipping Corepack
GPT-6.2 Sol: 6.8, likely 5.4 to 8.1
Berry shipped ten releases in the past year and has an established core team with community funding. Its stable repository saw 100 commits, well below pnpm, and an October report of a publishing failure remained open. Sentry’s migration shows that a major upgrade can require lockfile and TypeScript compatibility work. The roadmap moves active development to the Yarn 6 Rust rewrite after an interim Yarn 5 release, so the upgrade experience remains uncertain.
- github commitsLastYear, releasesLastYear, openIssues, openPullRequests and peers: 100 commits, ten releases, 772 open issues, and 225 open pull requests.
- github.com/sponsors/yarnpkg: Lists the core team and current sponsors.
- opencollective.com/yarnpkg: Shows current contributions and a modest estimated annual budget.
- github.com/yarnpkg/berry/issues/7308: Open October report of an intermittent 4.18.1 publishing failure.
- github.com/getsentry/sentry-react-native/issues/6411: Documents a completed Yarn 4 upgrade and the compatibility work it took.
- yarn6.netlify.app/concepts/yarn-6: Describes Yarn 5 as a transition release and Yarn 6 as the future development line.
Used widely5.6
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 4.0 to 7.0
Downloads of @yarnpkg/cli grew 2.8x in a year, but that is below the 4.1x median, and most users install Yarn through Corepack, so the count misses much of its use. Stars, Bluesky posts and dependents are far below pnpm's. Many established repos still use Yarn Modern, but few new projects pick it.
- npm downloadsLast4Weeks: 446,733 now against 157,971 a year ago, a 2.8x ratio below the 4.1x median
- peers pnpm: pnpm has 37k stars, 2,954 dependent repos and 94 Bluesky posts, against Yarn's 8k, 161 and 17
- dev.to/wojtekmaj/package-manager-wars-the-real-picture-e9p: Analysis of which package managers GitHub repos use
GPT-6.2 Sol: 6.1, likely 4.6 to 7.5
The tracked CLI package rose from about 158,000 to 447,000 four-week downloads, or 2.83×, below the catalog’s 4.1× baseline and well behind pnpm’s growth. Corepack retrieves the runnable build through other channels, so the tracked package’s downloads and 161 dependent repositories understate direct use. The professional survey shows meaningful Yarn Workspaces use and a clear pnpm lead, with no breakdown by Yarn version. Those gaps leave the size of the modern Yarn user base uncertain.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio and peers pnpm: Yarn grew 2.83× against a 4.1× baseline and about 9.37× for pnpm.
- github stars, dependents, bluesky posts and peers: 8,144 stars, 161 dependent repositories, and 17 Bluesky posts, with stronger signals for pnpm.
- github.com/nodejs/corepack/blob/main/config.json: Corepack fetches modern Yarn from its release server or the separate cli-dist package.
- 2024.stateofjs.com/en-US/libraries/monorepo_tools: 1,784 respondents reported using Yarn Workspaces at work versus 3,508 for pnpm.
Vouched for6.1
Who stands behind it being good?
Claude Opus 5.5: 5.0, likely 4.0 to 7.0
Datadog runs Yarn, including the Yarn 6 previews, in production, and several large open-source monorepos have long used Yarn Modern. Independent 2026 comparisons mostly recommend pnpm over it, and one found no use case where Berry was the right answer.
- v6.yarnpkg.com/blog/2026-01-28-yarn-6-preview: Datadog runs it in production
- dev.to/jtorchia/pnpm-vs-npm-vs-yarn-in-2026-i-ran-all-three-on-my-real-monorepo-and-it-forced-me-to-change-my-mind-9mc: Independent review that ranks Berry the hardest to justify
- tech-insider.org/pnpm-vs-yarn-2026: Comparison that treats pnpm as the default
GPT-6.2 Sol: 7.2, likely 6.1 to 8.3
Backstage scaffolds new projects with Yarn 4, and Sentry upgraded its React Native repository and CI to it. Independent install tests found a real Plug’n’Play performance advantage in their workloads. The survey covers Yarn Workspaces across versions, and Storybook has proposed moving its own monorepo to pnpm, so confidence in Yarn 4’s preferred status varies by team.
- backstage.io/docs/tutorials/yarn-migration: Backstage’s application generator defaults to Yarn 4.
- github.com/getsentry/sentry-react-native/issues/6411: Sentry completed its Yarn 4 migration in July 2026.
- repositorio.ufc.br/ri/bitstream/riufc/83080/1/2025_tcc_rvalima.pdf: Independent comparison measured fast Yarn Plug’n’Play installs across two operating systems.
- 2024.stateofjs.com/en-US/libraries/monorepo_tools: Measures professional Yarn Workspaces use across versions.
- github.com/storybookjs/storybook/issues/35363: Storybook’s migration proposal documents tooling friction and continued use in some fixtures.
Safe6.9
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
No advisories are known, and the BSD-2-Clause licence is permissive. In 2026 Yarn turned install scripts off by default and made it hold back package versions less than a day old, which cuts supply-chain risk. The OpenSSF Scorecard is low at 3.5, with zeros for Dangerous-Workflow, Token-Permissions and Pinned-Dependencies, and the package pulls in 35 dependencies.
- advisories total: 0 advisories
- scorecard score: 3.5, with weak workflow and token checks
- github.com/yarnpkg/berry/releases: enableScripts false and age gate made the defaults
GPT-6.2 Sol: 6.7, likely 5.4 to 8.0
The tracked CLI has no OSV advisories and uses the permissive BSD-2-Clause license. Fresh Yarn 4 projects get postinstall scripts disabled and a one-day package age gate by default. The tracked CLI declares 35 direct dependencies, and the usual distribution bundles its code into one file, reducing install-time dependency resolution. The 3.5 OpenSSF Scorecard, weak workflow and token controls, and uncertainty about who holds publishing access keep the range wide.
- advisories total, npm license and npm dependencies: Zero OSV advisories for the tracked package, BSD-2-Clause, and 35 direct dependencies.
- scorecard score and checks: 3.5 overall, with zeroes for dangerous workflows, token permissions, and dependency pinning.
- yarnpkg.com/features/security: Documents default script blocking, the package age gate, and hardened lockfile checks.
- raw.githubusercontent.com/yarnpkg/berry/master/scripts/release/03-release-npm.sh: Builds cli-dist from a single bundle and requests provenance for staged publishing.
- github.com/yarnpkg/berry/blob/master/.github/workflows/release-rerun.yml: The re-release workflow uses bot credentials for publishing.
Good
- Strong workspace tooling: constraints, yarn workspaces foreach, catalogs and a plugin system.
- Safe defaults added in 2026: enableScripts false and npmMinimalAgeGate 1d.
- Plug'n'Play and zero-installs give strict, reproducible installs without node_modules.
- No known security advisories, and the BSD-2-Clause licence is permissive.
Bad
- Plug'n'Play still breaks or needs patches for some tools (ESLint, Prisma, IDEs), which makes migration costly.
- Only about 100 commits in the last year, far fewer than pnpm or Bun, and the work depends heavily on one lead maintainer.
- The Rust rewrite (Yarn 6) is still a preview, so the project's future direction is not settled.
- Most new projects now choose pnpm, and Yarn is losing ground on downloads and mindshare.
The numbers
- npm downloads, 4 weeks
- 447k ×2.8 in a year
- GitHub stars
- 8.1k
- Commits, 12 months
- 100
- npm version
- 4.18.1 Sept 2026
- Versions, 12 months
- 10
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 3.5 out of 10, Nov 2026
- Licence
- BSD-2-Clause
This is Yarn 2 and later. Most people install it through Corepack, so the downloads count far too few.
Read on 21 November 2026 from GitHub (yarnpkg/berry), npm (@yarnpkg/cli), OSV and the OpenSSF Scorecard.