pnpm 12.27 was released on 4 December 2026. The headline feature is a new gh-release: protocol that installs command-line tools straight from a GitHub repository’s release assets. You can pin a binary like ripgrep in package.json, lock it with checksums for every platform, and run it from node_modules/.bin, the same way you use any npm dependency.

The release also extends aqua: tool installs, adds .exe shims on Windows, and includes a security fix in pnpm’s bundled node-gyp. This tutorial shows the new protocol in a real project. We ran every command below with pnpm 12.27.0 on Linux.

Get pnpm 12.27

When we checked npm on release day, 12.27.0 was published under the next-12 dist-tag, while latest still pointed to 12.26.0. So ask for the exact version:

pnpm self-update 12.27.0
# or try it without changing your global pnpm:
npx [email protected] --version

If your project uses the packageManager field (with Corepack, for example), update it to [email protected] so the whole team and CI use the same version.

Install a tool from GitHub Releases

The syntax from the release notes is pnpm add <name>@gh-release:<owner>/<repo>. Here we add ripgrep as a dev dependency:

pnpm add -D "ripgrep@gh-release:BurntSushi/ripgrep"

pnpm picked the latest release and saved a normal semver range in package.json:

{
  "devDependencies": {
    "ripgrep": "gh-release:BurntSushi/ripgrep@^16.0.0"
  }
}

The command is linked under the dependency’s alias, so we ran it like this:

pnpm exec ripgrep --version
# ripgrep 16.0.0 (rev 669cb4c755)

You can also call it from a script in package.json, for example "search-todos": "ripgrep TODO src".

What the lockfile records

This is where gh-release: beats a curl | tar step in your CI. The lockfile entry lists one variant per platform, each with its download URL and an integrity hash:

ripgrep@gh-release:BurntSushi/[email protected]:
  resolution:
    type: variations
    variants:
      - resolution:
          archive: tarball
          bin:
            ripgrep: rg
          integrity: sha256-VCaKtGQ8AKKQopsAhgZtZLP1YjbdgF7GRimob5vSn9A=
          type: binary
          url: https://github.com/BurntSushi/ripgrep/releases/download/16.0.0/ripgrep-16.0.0-x86_64-unknown-linux-musl.tar.gz
        targets:
          - cpu: x64
            os: linux
      # ... more variants

In our project, pnpm recorded six variants: x64 and arm64 for Linux, macOS and Windows. Teammates on a Mac and CI on Linux get the right binary from the same lockfile, and the checksum makes sure nobody gets a different file later. The bin map also shows how the command name (ripgrep) maps to the file inside the archive (rg).

When pnpm can’t guess the asset

pnpm picks the asset for each platform from the asset names. Some projects publish several assets for one platform, or name them in unusual ways. For those, 12.27 adds a ghReleaseTools setting that names the release asset and the commands of a gh-release: tool. It’s listed in the pnpm settings reference. Check the docs for the exact format before you rely on it.

gh-release: or aqua:?

pnpm already supported aqua:, which installs tools listed in the aqua registry. The aqua registry knows how each tool is packaged. The release notes describe gh-release: as the option for a tool the aqua registry has no entry for.

12.27 also makes aqua: handle more formats: tools released as a single gzip-compressed program and tools released as .tar.xz archives. The notes give aqua:tamasfe/taplo and aqua:watchexec/cargo-watch as examples. We tried the first one:

pnpm add -D "aqua:tamasfe/taplo"
pnpm exec taplo --version
# taplo 0.10.0

The lockfile recorded archive: gz for that tool, so pnpm unpacked the gzipped binary itself.

A good rule of thumb: try aqua: first, because the registry encodes packaging details. Fall back to gh-release: for anything else that ships binaries on GitHub Releases.

Other changes in 12.27

Windows .exe shims

On Windows, pnpm install now adds <command>.exe to node_modules/.bin for a command whose file is an .exe, next to its .cmd shim. Cargo can run such a command as a subcommand, and rustc can use it as a linker or wrapper. That’s useful if you manage Rust tooling through pnpm.

Security fix in bundled node-gyp

The node-gyp bundled with pnpm now uses tar 8, which fixes several tar advisories, including GHSA-7c32-79xj-j3jp. If you build native addons with pnpm, this alone is a reason to upgrade.

Stricter handling of nameless packages

Installing a tarball URL or Git-hosted dependency whose package.json has no name now fails with ERR_PNPM_MISSING_PACKAGE_NAME. Before, such a package was installed under its alias at version 0.0.0. If a CI job starts failing with this error, add a name to the dependency’s manifest or switch to a published version.

Smaller fixes

  • pnpm publish, dist-tag, unpublish and stage now print web-authentication notices from the registry, such as the code to enter in the browser.
  • pnpm install updates the lockfile in place after a dependency is removed or moved, in projects where overrides rewrites a direct dependency, instead of resolving the whole graph again.
  • pnpm config set handles a pnpm-workspace.yaml that starts with a UTF-8 byte order mark.
  • An aqua: tool whose Linux download is a glibc build is no longer installed on musl systems such as Alpine, where it couldn’t run.
  • pnpm can install a Node.js runtime from the lockfile on 32-bit ARM Linux, 32-bit Windows and little-endian POWER Linux.

A practical pattern for teams

Many Node.js repos need a few non-JavaScript tools: a TOML formatter, a fast search tool, a schema linter. Instead of documenting “install X with Homebrew” in the README, add them as dev dependencies:

pnpm add -D "aqua:tamasfe/taplo" "ripgrep@gh-release:BurntSushi/ripgrep"

Then reference them in scripts. New contributors run pnpm install once and get the exact versions CI uses, verified by the lockfile.

Takeaway

pnpm 12.27 turns GitHub Releases into a first-class source of locked, checksummed CLI tools with gh-release:. Upgrade for that and for the node-gyp tar fix, and watch for the new ERR_PNPM_MISSING_PACKAGE_NAME error with nameless Git or tarball dependencies. All the details are in the pnpm 12.27 release notes.