pnpm 12.23.0
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
otpfrom 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 editopens an installed package directory in your editor. Fast way to read the shipped source instead of a stale copy on GitHub.pnpm catalog migratemoves dependency specifiers into the default catalog and rewrites the workspacepackage.jsonfiles tocatalog:. A dependency moves only when every project declares the same specifier, and the command lists what it left alone.pnpm link --hardsaves the linked package with thefile:protocol, hard links its files intonode_modules, and resolves its dependencies and peers from your project.pnpm unlinkremoves these links.
Smaller Changes Worth Knowing
pnpm removeaccepts 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
referenceTimesetting, plus--minimum-release-ageand--minimum-release-age-excludeon install, add, update, and dlx. --allow-buildtakes 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
overridesproduce a warning. Silence it withwarnUnusedOverrides: false. pnpm packandpnpm publishrefuse a non-private package that lists a private workspace package independencies.pnpm doctorinspects the environment lifecycle scripts run in, including brokennodebinaries on PATH.PNPM_CONFIG_HOMEchooses the directory holdingconfig.yamlandauth.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.