# Yarn Classic to Yarn Berry or pnpm: How to Move | gen2.dev

> Yarn 1.x is frozen and accepts only security fixes. How to move to modern Yarn or pnpm, what changes in configuration and CI, and who can stay.

Source: https://gen2.dev/successors/yarn-classic/

---

Successor Map · Package managers

# Yarn Classic to Yarn Berry or pnpm: frozen, security fixes only

Yarn 1.x is frozen: its repository says features and bug fixes now happen in the Berry repository. Teams move either to modern Yarn or to pnpm.

![Slide: Yarn Classic on the left, an arrow, and Yarn Berry or pnpm on the right.](https://gen2.dev/img/successor-yarn-classic.png)

Status of the old tool

Maintenance only

Effort to move

Mechanical

gen2.dev's view

Move when convenient

Sources checked

2026-11-28

## Key facts

Gen 1

![Yarn Classic logo](https://gen2.dev/icons/tech/yarn-classic.png)Yarn Classic (the 1.x line; the Yarn documentation lists 1.22.22)

Gen 2

![pnpm logo](https://gen2.dev/icons/tech/pnpm.png)Modern Yarn (Berry) or pnpm

Kind of tool

[Package managers](https://gen2.dev/successors/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](#sources)

## Gen 1 and Gen 2 side by side

npm registry

![Yarn Classic logo](https://gen2.dev/icons/tech/yarn-classic.png)Gen 1

![pnpm logo](https://gen2.dev/icons/tech/pnpm.png)Gen 2

Package

[yarn](https://www.npmjs.com/package/yarn)

[pnpm](https://www.npmjs.com/package/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 `.npmrc` and `.yarnrc` into `.yarnrc.yml`.
-   Run `yarn install` to 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](https://gen2.dev/guide/cutover/), with a date and a way back.

## What breaks

On modern Yarn:

-   **Configuration.** Only `.yarnrc.yml` is read. The guide says: "Any other file is now ignored - this includes `.npmrc`." Registry settings and tokens kept there stop applying.
-   **CI flags.** `--frozen-lockfile` is renamed to `--immutable`.
-   **Scripts.** Custom `pre` and `post` scripts are no longer run automatically and must be called explicitly.
-   **Hoisting settings.** `nohoist` is replaced by `nmHoistingLimits`.

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

1.  [yarnpkg/yarn repository and README - GitHub](https://github.com/yarnpkg/yarn) - 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.
2.  [Step-by-step migration guide - Yarn documentation](https://yarnpkg.com/migration/guide) - 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.
3.  [pnpm import - pnpm documentation](https://pnpm.io/cli/import) - 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.
4.  [Motivation - pnpm documentation](https://pnpm.io/motivation) - Explains the single on-disk store and how pnpm's modules directory differs from the hoisted layout of npm and Yarn Classic.
5.  [yarn - npm](https://www.npmjs.com/package/yarn) - latest version, release dates, license and last week's downloads, read on November 29, 2026
6.  [pnpm - npm](https://www.npmjs.com/package/pnpm) - 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.

## How to do the move

The pattern that fits this kind of replacement:

[The cutover](https://gen2.dev/guide/cutover/)

[All successor entries](https://gen2.dev/successors/)

Also moving to pnpm:

-   [Lerna](https://gen2.dev/successors/lerna/)

## More in Package managers

-    [![Bower logo](https://gen2.dev/icons/tech/bower.png) Bower to npm Maintenance only Mechanical Move when convenient](https://gen2.dev/successors/bower/)
-    [![pip logo](https://gen2.dev/icons/tech/pip.png) pip to uv Still active Drop-in Move when convenient](https://gen2.dev/successors/pip/)

[All package managers](https://gen2.dev/successors/package-managers/)
