Skip to main content

pnpm 12.26.0

Release Date: December 2, 2026

Overview. pnpm 12.26 was released on December 2, 2026. The release adds installation of command-line tools from their publishers' archives, splits supportedArchitectures into separate lockfile and local install lists, introduces sideEffectsCache.key for builds that target other runtimes, and ships three security fixes. It follows 12.25.1, published on November 29.

New Features

Tools from publishers. pnpm can now install command-line tools such as jq, ripgrep, and the GitHub CLI directly from the archives their publishers release, resolving names through the aqua registry. Adding gh@aqua:cli/cli writes "gh": "aqua:cli/cli@^2.106.0" to devDependencies, and pnpm install links the tool's commands into node_modules/.bin. The lockfile records the download and its checksum for every platform the tool publishes; when GitHub reports no checksum, pnpm downloads the file to compute one. Tools may only be listed in a project's devDependencies, and pnx aqua:cli/cli runs one without adding it. A named registry can no longer be called aqua.

Split architecture lists. supportedArchitectures now accepts resolve, which selects the platforms the lockfile covers, and fetch, which selects the platforms whose downloads are installed locally. Changing only fetch works with a frozen lockfile, which removes a long standing conflict between cross-platform lockfiles and single-machine installs. supportedArchitectures.required fails resolution when a tool has no download for a listed platform.

Side effects cache keys. sideEffectsCache.key declares what a project's dependency builds depend on, so builds made for different targets get separate side-effects cache entries in the same store. key.env lists environment variables whose values are hashed into the key, such as the npm_config_runtime that Electron projects set, or NIX_CC in a Nix shell. key.excludeNodeVersion: true keeps the Node.js major version out of the key for builds that target another runtime.

Versioned exclusion patterns. minimumReleaseAgeExclude, trustPolicyExclude, and sideEffectsCache.exclude accept scoped name patterns with exact versions. For example, @myorg/tool-*@1.2.3 exempts matching packages only at version 1.2.3. Versioned patterns require a scope without wildcards.

Security Fixes

  • Shell resolution. Scripts run with an absolute /bin/sh by default outside Windows, or /system/bin/sh on Android. A dependency that ships a bin named sh can no longer replace the shell used to run other packages' lifecycle scripts.
  • Tarball parsing. pnpm ends a package tarball at two zero blocks that npm cannot read as a header between them. Previously pnpm installed files appearing after that point, files npm would not install.
  • Output sanitizing. pnpm view strips control characters and invisible formatting characters from registry metadata before printing. In the summary view, line breaks and tabs inside a value become spaces. --json output is unchanged.

Notable Fixes

  • Installs no longer fail when a package tarball carries a binary extended file attribute.
  • Native addon builds no longer fail when the bundled node-gyp downloads Node.js headers.
  • Installs report ERR_PNPM_MISSING_PACKAGE_NAME when a file: directory, git repository, or tarball URL has a package.json without a name, replacing an internal error about a lockfile entry that could not be keyed.
  • Pinned pnpm installs ignore unrelated project settings such as engineStrict, virtualStoreOnly, or sideEffectsCache.exclude, and reuse the cached installation across runs.
  • pnpm self-update and version switching reject redirects that require different TLS settings, so an unused registry with an unsupported client certificate no longer breaks the update.
  • Filtered installs apply catalog and override changes to registry dependencies of workspace projects missing from disk, and frozen installs reject a lockfile whose recorded version disagrees with its catalog entry.
  • pnpm remove and pnpm link preserve lockfile entries for workspace projects missing from disk, and pnpm remove now applies workspace filters from the updateConfig hook.
  • pnpm install, pnpm update, and pnpm outdated respect minimumReleaseAge when selecting a Node.js version for devEngines.runtime.
  • Lockfile entries that spell a tool version with tool: are read the same as the runtime: spelling. pnpm still writes runtime:.
  • pnpm config delete removes a field named by a dotted key from config.yaml and pnpm-workspace.yaml, and deleting a missing field succeeds without touching the file.
  • pnpm pack and pnpm publish no longer zero-pad brace range values, so part{1..10..02}.js matches part1.js and part3.js as in Bash.
  • Globally installed crates from pnpm add -g crate:<name> now ship real executables on Windows instead of .cmd scripts, so Cargo and rustc can run them.

Upgrade Notes

No breaking API changes are listed for this release. Projects that rely on a registry named aqua must rename it, and any toolchain that expected sh to resolve through the dependency tree should confirm its scripts still run as intended after the absolute shell change. To upgrade, run pnpm self-update, or pin the version with the packageManager field. CI environments using pnpm/action-setup need no change beyond the version bump.

Other Versions

We use cookies for ads and analytics.