Key facts
| Gen 1 | |
|---|---|
| Gen 2 | |
| Kind of tool | Package managers |
| Status of Gen 1 | Maintenance only The yarnpkg/yarn repository, read on November 28, 2026, says the 1.x line is frozen and that the 1.x codebase will only accept security fixes. |
| Effort to move | Mechanical: same ideas, different calls |
| What breaks | Modern Yarn ignores .npmrc and .yarnrc, drops custom pre and post scripts, and renames the frozen-lockfile flag that most CI scripts use. |
| Should you move? | Move when convenient Yarn 1.x still accepts security fixes, so staying is not yet a risk, but it will get no features or ordinary bug fixes. This is gen2.dev's view, not the maintainers'. |
| Sources checked | 2026-11-28, 4 sources |
Gen 1 and Gen 2 side by side
| npm registry | ||
|---|---|---|
| Package | yarn | pnpm |
| Latest version | 1.22.22 | 12.23.0 |
| Latest release | Mar 9, 2024 | Nov 22, 2026 |
| First release | Mar 21, 2012 | Mar 8, 2013 |
| License | BSD-2-Clause | MIT |
| Downloads, last week | 12,697,413 | 329,994,261 |
Read from each package registry on November 29, 2026. Downloads include automated installs such as build servers, so compare them as a trend, not a head count.
What Gen 1 was
Yarn Classic is the 1.x line of the Yarn package manager, the one that installs from yarn.lock into a hoisted node_modules folder. Its repository states its condition in one line: "The 1.x line is frozen - features and bugfixes now happen on" the Berry repository. The README says the sources are kept mostly for historical purposes and the occasional hotfix, and adds: "The 1.x codebase is fairly old and will only accept security fixes."
What replaced it
There are two successors, and they answer different questions.
Modern Yarn, developed in the repository named Berry, is the same project continued. It keeps the yarn command and most of the workflow. pnpm is a different package manager. Its documentation says "All the files are saved in a single place on the disk," and it links only a project's direct dependencies into the root of the modules directory.
What moving involves
For modern Yarn, the official guide is short:
- Use Node 18 or later and run
corepack enable. - Run
yarn set version berry. - Convert
.npmrcand.yarnrcinto.yarnrc.yml. - Run
yarn installto migrate the lockfile.
The guide says this path lets you keep your node_modules folder. Plug'n'Play, the install mode modern Yarn is known for, is a separate decision: "It's only once we're done that you'll have to decide whether you want to spend time migrating to Yarn PnP."
For pnpm, the starting point is one command. "pnpm import generates a pnpm-lock.yaml from another package manager's lockfile," and yarn.lock is one it reads. The documentation warns that "The import is not a one-to-one conversion."
Either way, every developer machine and every CI job changes together. Treat the switch as a cutover, with a date and a way back.
What breaks
On modern Yarn:
- Configuration. Only
.yarnrc.ymlis read. The guide says: "Any other file is now ignored - this includes.npmrc." Registry settings and tokens kept there stop applying. - CI flags.
--frozen-lockfileis renamed to--immutable. - Scripts. Custom
preandpostscripts are no longer run automatically and must be called explicitly. - Hoisting settings.
nohoistis replaced bynmHoistingLimits.
On pnpm, the layout is the change. The pnpm documentation points out that with hoisting, "source code has access to dependencies that are not added as dependencies to the project." Code that leaned on that has to declare what it imports.
Should you move?
Move when it is convenient. Yarn 1.x still accepts security fixes, so it does not meet the bar for urgency. It gets nothing else, and its own README recommends migrating to the latest release.
The exceptions are projects pinned to a Node version older than 18, which the modern Yarn guide does not cover, and repositories near the end of their life.
Common questions
Is Yarn Classic dead?
Not yet. It is in maintenance only. The yarnpkg/yarn repository, read on November 28, 2026, says the 1.x line is frozen and that the 1.x codebase will only accept security fixes.
What replaced Yarn Classic?
Modern Yarn (Berry) or pnpm. Effort to move: Mechanical: same ideas, different calls
Should I move off Yarn Classic?
gen2.dev's view: Move when convenient. Yarn 1.x still accepts security fixes, so staying is not yet a risk, but it will get no features or ordinary bug fixes.
Sources
- yarnpkg/yarn repository and README - GitHub - States that the 1.x line is frozen, that features and bug fixes happen in the berry repository, and that the 1.x codebase will only accept security fixes.
- Step-by-step migration guide - Yarn documentation - The migration steps from Yarn 1.x and the list of behavior changes; the version selector lists 4.19.0-dev, 3.8.7 and 1.22.22.
- pnpm import - pnpm documentation - States that pnpm import generates pnpm-lock.yaml from another package manager's lockfile, including yarn.lock, and that it is not a one-to-one conversion.
- Motivation - pnpm documentation - Explains the single on-disk store and how pnpm's modules directory differs from the hoisted layout of npm and Yarn Classic.
- yarn - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026
- pnpm - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026
Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.

