pnpm 12.26.0
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/shby default outside Windows, or/system/bin/shon Android. A dependency that ships a bin namedshcan 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 viewstrips control characters and invisible formatting characters from registry metadata before printing. In the summary view, line breaks and tabs inside a value become spaces.--jsonoutput 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_NAMEwhen afile:directory, git repository, or tarball URL has apackage.jsonwithout aname, replacing an internal error about a lockfile entry that could not be keyed. - Pinned pnpm installs ignore unrelated project settings such as
engineStrict,virtualStoreOnly, orsideEffectsCache.exclude, and reuse the cached installation across runs. pnpm self-updateand 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 removeandpnpm linkpreserve lockfile entries for workspace projects missing from disk, andpnpm removenow applies workspace filters from theupdateConfighook.pnpm install,pnpm update, andpnpm outdatedrespectminimumReleaseAgewhen selecting a Node.js version fordevEngines.runtime.- Lockfile entries that spell a tool version with
tool:are read the same as theruntime:spelling. pnpm still writesruntime:. pnpm config deleteremoves a field named by a dotted key fromconfig.yamlandpnpm-workspace.yaml, and deleting a missing field succeeds without touching the file.pnpm packandpnpm publishno longer zero-pad brace range values, sopart{1..10..02}.jsmatchespart1.jsandpart3.jsas in Bash.- Globally installed crates from
pnpm add -g crate:<name>now ship real executables on Windows instead of.cmdscripts, 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.