# Lerna to Nx or pnpm Workspaces: Current Status | gen2.dev

> Lerna is alive under Nx stewardship, but its bootstrap, add and link commands are gone. What replaced them and what a Lerna repository has to change.

Source: https://gen2.dev/successors/lerna/

---

Successor Map · Build tools and bundlers

# Lerna to Nx or pnpm workspaces: the monorepo tool that changed hands

Lerna was at risk of being unmaintained until Nx took over its stewardship in 2022. It is released regularly again, but linking packages is now the package manager's job and running tasks is handed to Nx.

![Slide: Lerna on the left, an arrow, and Nx or pnpm workspaces on the right.](https://gen2.dev/img/successor-lerna.png)

Status of the old tool

Still active

Effort to move

Mechanical

gen2.dev's view

Leave it

Sources checked

2026-11-28

## Key facts

Gen 1

![Lerna logo](https://gen2.dev/icons/tech/lerna.png)Lerna, with its own bootstrap, add and link commands

Gen 2

![pnpm logo](https://gen2.dev/icons/tech/pnpm.png)![Nx logo](https://gen2.dev/icons/tech/nx.png)Package manager workspaces (npm, Yarn or pnpm) with Nx running tasks

Kind of tool

[Build tools and bundlers](https://gen2.dev/successors/build-tools/)

Status of Gen 1

Still active Lerna's changelog lists version 10.1.3 on 2026-11-19, and its README says the project changed stewardship to Nx and is alive and well.

Effort to move

Mechanical: same ideas, different calls

What breaks

Scripts and CI jobs that call lerna bootstrap, lerna add or lerna link fail, because Lerna 9.0.0 removed those commands completely.

Should you move?

Leave it Lerna is maintained and released under Nx stewardship, so staying on a current Lerna version is fine; only the removed commands have to go. This is gen2.dev's view, not the maintainers'.

Sources checked

2026-11-28, [6 sources](#sources)

## Gen 1 and Gen 2 side by side

npm registry

![Lerna logo](https://gen2.dev/icons/tech/lerna.png)Gen 1

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

Package

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

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

Latest version

10.1.3

24.1.0

Latest release

Nov 19, 2026

Nov 27, 2026

First release

Dec 4, 2015

Aug 8, 2011

License

MIT

MIT

Downloads, last week

1,992,981

14,727,765

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

Lerna made it practical to keep many JavaScript packages in one repository. Its README still describes it as "a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository."

The classic Lerna did three jobs: it linked the packages to each other with `lerna bootstrap`, it ran scripts across them, and it versioned and published them.

## What replaced it

Lerna was not replaced so much as taken apart. Its own documentation says, "Nx took over stewardship of Lerna in 2022 after it was at risk of being unmaintained." The lead maintainer announced it in an issue titled "Announcement: Passing the torch" on May 6, 2022.

Two of the three jobs then moved out:

-   **Linking** went to the package manager. Lerna's documentation says of installing and linking dependencies that "your package manager is much better suited to that task." The pnpm documentation, for one, says "pnpm has built-in support for monorepositories."
-   **Running tasks** went to Nx. Lerna now uses Nx to detect the packages in the workspace and, in its own words, "defers to Nx's powerful task runner to run scripts."

The README's summary for worried users: "Your favorite tool is alive and well." The changelog lists version 10.1.3 on 2026-11-19.

## What moving involves

For a repository on old Lerna, the move is to current Lerna on top of workspaces, and the documentation gives the replacements:

-   Replace `lerna bootstrap` with `npm install`, or the Yarn or pnpm equivalent. If an install already runs earlier in the workflow, delete the bootstrap step.
-   Remove `lerna link`. The package manager links packages during install.
-   Replace `lerna add <dependency> --scope <package>` with `npm install <dependency> -w <package>`.

With pnpm, the workspace is declared in a `pnpm-workspace.yaml` file at the root. This is a refactor of the build, not a rewrite, which is the cheaper side of [the rewrite or refactor decision](https://gen2.dev/guide/rewrite-vs-refactor/).

## What breaks

The removal came in two stages. Lerna 7.0.0, dated 2023-06-08, removed the three commands by default and made package manager workspaces the default. Lerna 9.0.0, dated 2025-09-23, removed them completely. Any script, CI job or onboarding document that still calls them stops working at that upgrade.

The major versions also raise the Node floor: 7.0.0 dropped Node v14 and 9.0.0 dropped Node v18. Lerna 10.0.0, dated 2026-07-29, supports only Node `^22.13.0`, `^24.0.0` or `^26.0.0` and ships Lerna as ESM-only, so check any tooling that loads Lerna with `require()`.

One pnpm detail deserves a test. With the `workspace:` protocol, pnpm refuses to resolve a dependency to anything other than a local workspace package, so a version that used to come quietly from the registry now fails the install.

## Should you move?

Leave it, provided you are on a current version. Lerna is maintained and released, and nothing in its documentation asks you to leave.

The exceptions are repositories pinned to a Lerna version that still depends on `bootstrap`, which should move to workspaces before upgrading anything else, and teams that only ever used Lerna to link packages. Those teams can use workspaces alone.

## Common questions

### Is Lerna dead?

No. Its maintainers have not announced an end. Lerna's changelog lists version 10.1.3 on 2026-11-19, and its README says the project changed stewardship to Nx and is alive and well.

### What replaced Lerna?

Package manager workspaces (npm, Yarn or pnpm) with Nx running tasks. Effort to move: Mechanical: same ideas, different calls

### Should I move off Lerna?

gen2.dev's view: Leave it. Lerna is maintained and released under Nx stewardship, so staying on a current Lerna version is fine; only the removed commands have to go.

## Sources

1.  [lerna/lerna README - GitHub](https://github.com/lerna/lerna) - Describes Lerna as a build system for managing and publishing multiple packages, and carries the note that the project changed stewardship to Nx.
2.  [Announcement: Passing the torch, issue 3121 - lerna/lerna (May 6, 2022)](https://github.com/lerna/lerna/issues/3121) - The lead maintainer's announcement that Nrwl is taking over stewardship of Lerna.
3.  [Lerna and Nx - Lerna documentation](https://lerna.js.org/docs/lerna-and-nx) - Says Nx took over stewardship in 2022 after Lerna was at risk of being unmaintained, and explains that Lerna uses Nx to detect packages and run tasks.
4.  [Legacy Package Management - Lerna documentation](https://lerna.js.org/docs/legacy-package-management) - States that bootstrap, add and link were fully removed in v9.0.0 and gives the replacement for each.
5.  [Lerna CHANGELOG - GitHub](https://raw.githubusercontent.com/lerna/lerna/main/CHANGELOG.md) - Release dates and breaking changes: 7.0.0 on 2023-06-08, 9.0.0 on 2025-09-23, 10.0.0 (ESM-only, Node ^22.13.0, ^24.0.0 or ^26.0.0) on 2026-07-29 and 10.1.3 on 2026-11-19.
6.  [Workspaces - pnpm documentation](https://pnpm.io/workspaces) - Says pnpm has built-in support for monorepositories, and describes pnpm-workspace.yaml and the workspace protocol.
7.  [lerna - npm](https://www.npmjs.com/package/lerna) - latest version, release dates, license and last week's downloads, read on November 29, 2026
8.  [nx - npm](https://www.npmjs.com/package/nx) - 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:

[Rewrite vs refactor](https://gen2.dev/guide/rewrite-vs-refactor/)

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

Also moving to pnpm:

-   [Yarn Classic](https://gen2.dev/successors/yarn-classic/)

## More in Build tools and bundlers

-    [![Apache Ant logo](https://gen2.dev/icons/tech/apache-ant.png) Apache Ant to Gradle or Maven Still active A real project Move when convenient](https://gen2.dev/successors/apache-ant/)
-    [![Create React App logo](https://gen2.dev/icons/tech/create-react-app.png) Create React App to Vite Deprecated Mechanical Move when convenient](https://gen2.dev/successors/create-react-app/)
-    [![Grunt logo](https://gen2.dev/icons/tech/grunt.png) Grunt to npm scripts or Vite Still active Mechanical Leave it](https://gen2.dev/successors/grunt/)
-    [![Gulp logo](https://gen2.dev/icons/tech/gulp.png) Gulp to esbuild or Eleventy Still active A real project Leave it](https://gen2.dev/successors/gulp/)
-    [![webpack logo](https://gen2.dev/icons/tech/webpack.png) webpack to Vite Still active A real project Leave it](https://gen2.dev/successors/webpack/)
-    [![Webpacker logo](https://gen2.dev/icons/tech/webpacker.png) Webpacker to jsbundling-rails and Shakapacker Deprecated Mechanical Move when convenient](https://gen2.dev/successors/webpacker/)

[All build tools and bundlers](https://gen2.dev/successors/build-tools/)
