Skip to main content

pnpm 12.23.0

Release Date: November 22, 2026

pnpm 12.23.0 is out, released November 22, 2026. It removes platform variants, adds three new commands, and closes two credential-handling holes. Install it with corepack use [email protected] or npm install -g [email protected].

Breaking: Platform Variants Are Gone

One package version, one archive. That is the rule again. pnpm no longer reads publishConfig.variants or the variant field of package.json. The --variant flag on pnpm pack is removed, along with --upload-variant, --variant-integrity, and --no-variants on pnpm publish.

If you ship per-platform builds, publish each as its own package and list them in optionalDependencies. A frozen install of a lockfile that records variants of a registry package now fails with ERR_PNPM_BROKEN_LOCKFILE. Run a normal pnpm install once to rewrite the lockfile.

Security Fixes

  • No more otp from config files. One-time passwords are read from the interactive prompt only, so a committed or shared config file cannot carry a second factor.
  • Credentials stay on HTTPS. pnpm sends registry credentials only over HTTPS. A plain HTTP registry now gets a request without your token.

Three New Commands

  • pnpm edit opens an installed package directory in your editor. Fast way to read the shipped source instead of a stale copy on GitHub.
  • pnpm catalog migrate moves dependency specifiers into the default catalog and rewrites the workspace package.json files to catalog:. A dependency moves only when every project declares the same specifier, and the command lists what it left alone.
  • pnpm link --hard saves the linked package with the file: protocol, hard links its files into node_modules, and resolves its dependencies and peers from your project. pnpm unlink removes these links.

Smaller Changes Worth Knowing

  • pnpm remove accepts globs and ! exclusions: pnpm remove "eslint-*" "!eslint-plugin-import".
  • pnpm update --tag <tag> updates matched dependencies to the version behind a dist-tag.
  • pnpm update --latest <pkg> now moves the override that pins that dependency, keeping the range shape (^ stays ^).
  • pnpm publish --new-version <version> sets the version before publishing. With --recursive, every selected workspace package is bumped.
  • New referenceTime setting, plus --minimum-release-age and --minimum-release-age-exclude on install, add, update, and dlx.
  • --allow-build takes a comma-separated list: --allow-build=foo,bar.
  • Deprecation warnings now live in the install summary and only name packages the install actually added.
  • Unmatched overrides produce a warning. Silence it with warnUnusedOverrides: false.
  • pnpm pack and pnpm publish refuse a non-private package that lists a private workspace package in dependencies.
  • pnpm doctor inspects the environment lifecycle scripts run in, including broken node binaries on PATH.
  • PNPM_CONFIG_HOME chooses the directory holding config.yaml and auth.ini.
  • Prebuilt Linux binaries now include LoongArch (loong64, glibc).

Upgrade Notes

For most projects this is a drop-in. The one migration that needs attention is the variant removal: check whether any published package in your workspace uses variants, and rewrite those builds as separate packages before bumping. If your lockfile records them, expect one resolution pass.

If you use otp in .npmrc for automated publishes, that flow breaks on purpose. Move it to an environment-based token or a CI secret.

Other Versions

We use cookies for ads and analytics.