PNpM CLI

pnpm/pnpm last check 747 releases recent
Notes
no notes yet
Release notes
view on github
12.27.0 · pnpm 12.27 · recent

This release adds the gh-release: protocol, which installs command-line tools from any GitHub repository's releases. It also installs more aqua: tool formats and gives Windows commands an .exe that Cargo and rustc can run. The release carries a security fix in the node-gyp bundled with pnpm.

Minor Changes

  • Added the gh-release: protocol. It installs a command-line tool from the assets of a GitHub repository's releases, for a tool the aqua registry has no entry for, such as pnpm add my-tool@gh-release:owner/repo.

    The new ghReleaseTools setting names the release asset and the commands of a gh-release: tool when pnpm cannot pick them from the asset names, such as when a release has several assets for one platform.

  • pnpm add aqua:<owner>/<repo> now installs tools released as a gzip-compressed program, such as aqua:tamasfe/taplo, and tools released as .tar.xz archives, such as aqua:watchexec/cargo-watch.

  • On Windows, pnpm install now adds <command>.exe to node_modules/.bin for a command whose file is an .exe, beside its .cmd shim. Cargo can run such a command as a subcommand, and rustc can use it as a linker or a wrapper.

  • pnpm publish, pnpm dist-tag, pnpm unpublish, and pnpm stage now print the notices that a registry sends when it asks for web authentication, such as the code to enter in the browser.

Patch Changes

Installing packages

  • The node-gyp bundled with pnpm now uses tar 8, which fixes several tar advisories, including GHSA-7c32-79xj-j3jp.

  • Installing a tarball URL or git-hosted dependency whose package.json has no name now fails with ERR_PNPM_MISSING_PACKAGE_NAME, as it does for a file: tarball. Such a package was installed under its dependency alias at version 0.0.0 when its package.json had none of the fields pnpm records, such as {} or {"private": true}.

  • pnpm add -g <directory> and Git dependencies now read package.yaml and package.json5 manifests. Git dependencies with these manifests run their preparation scripts. Global packages with these manifests also expose their declared binaries pnpm/tasks#220.

  • pnpm install now updates the lockfile in place after a dependency is removed or moved to another dependency group, in a project where overrides rewrites a direct dependency. Such an install resolved the whole dependency graph again.

  • Fixed the allowBuilds example shown by pnpm install for Git dependencies fetched over SSH. The quoted key includes the Git username, commit, and any package subdirectory #18628.

  • pnpm no longer links a command whose name starts with .pnpm-. Those names are reserved for the files pnpm keeps in a bin directory.

Tools and runtimes

  • pnpm now installs a Node.js runtime from the lockfile on 32-bit ARM Linux, 32-bit Windows, and little-endian POWER Linux. On these hosts, pnpm found no Node.js download in the lockfile that matched the host.

  • supportedArchitectures now reads a little-endian POWER Linux machine as linux-ppc64le. pnpm read it as linux-ppc64be, for example when a platform list names current.

  • An aqua: tool whose Linux download is a glibc build, such as hyperfine on ARM64, is no longer installed on musl systems such as Alpine. The glibc build could not run there.

  • pnpm now unpacks a tool's download when the lockfile changes it from a program on its own to an archive of the same file. pnpm kept linking the stored program as the command.

  • A Rust toolchain install now stops if downloading the toolchain takes longer than 15 minutes. For a channel that moves, such as stable, pnpm then uses the newest release of the channel already in the store pnpm/tasks#286.

Configuration and publishing

  • pnpm config set now handles a pnpm-workspace.yaml that begins with a UTF-8 byte order mark. Setting the first key of such a file used to add a second entry with the same key. Adding a nested setting such as allowBuilds.esbuild used to fail with an invalid YAML error #18645.

  • pnpm publish and pnpm dist-tag no longer print a "Skipped OIDC" warning for every package when they fall back to the configured token, such as when publishing to GitHub Packages. pnpm logs the reason at debug level #18674.

<!-- sponsors -->

Platinum Sponsors

<table> <tbody> <tr> <td align="center" valign="middle"> <a href="https://bit.cloud/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"><img src="https://pnpm.io/img/users/bit.svg" width="80" alt="Bit"></a> </td> <td align="center" valign="middle"> <a href="https://openai.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/openai_dark.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/openai_light.svg" /> <img src="https://pnpm.io/img/users/openai_dark.svg" width="160" alt="OpenAI" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://notion.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/notion.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/notion_light.svg" /> <img src="https://pnpm.io/img/users/notion.svg" width="80" alt="Notion" /> </picture> </a> </td> </tr> <tr> <td align="center" valign="middle"> <a href="https://coderabbit.ai/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/coderabbit.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/coderabbit_light.svg" /> <img src="https://pnpm.io/img/users/coderabbit.svg" width="220" alt="CodeRabbit" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://www.cloudflare.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/cloudflare.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/cloudflare_light.svg" /> <img src="https://pnpm.io/img/users/cloudflare.svg" width="160" alt="Cloudflare" /> </picture> </a> </td> </tr> </tbody> </table>

Gold Sponsors

<table> <tbody> <tr> <td align="center" valign="middle"> <a href="https://sanity.io/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/sanity.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/sanity_light.svg" /> <img src="https://pnpm.io/img/users/sanity.svg" width="120" alt="Sanity" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://discord.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/discord.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/discord_light.svg" /> <img src="https://pnpm.io/img/users/discord.svg" width="220" alt="Discord" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://vite.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"><img src="https://pnpm.io/img/users/vitejs.svg" width="42" alt="Vite"></a> </td> </tr> <tr> <td align="center" valign="middle"> <a href="https://serpapi.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/serpapi_dark.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/serpapi_light.svg" /> <img src="https://pnpm.io/img/users/serpapi_dark.svg" width="160" alt="SerpApi" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://stackblitz.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/stackblitz.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/stackblitz_light.svg" /> <img src="https://pnpm.io/img/users/stackblitz.svg" width="190" alt="Stackblitz" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://workleap.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/workleap.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/workleap_light.svg" /> <img src="https://pnpm.io/img/users/workleap.svg" width="190" alt="Workleap" /> </picture> </a> </td> </tr> <tr> <td align="center" valign="middle"> <a href="https://nx.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/nx.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/nx_light.svg" /> <img src="https://pnpm.io/img/users/nx.svg" width="50" alt="Nx" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://latitude.so/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/latitude.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/latitude_light.svg" /> <img src="https://pnpm.io/img/users/latitude.svg" width="160" alt="Latitude" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://syntax.fm/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/syntaxfm.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/syntaxfm_light.svg" /> <img src="https://pnpm.io/img/users/syntaxfm.svg" width="90" alt="Syntax" /> </picture> </a> </td> </tr> </tbody> </table>

<!-- sponsors end -->