@pnpm/exe
12.21.0 · 13 Nov 2026MIT9.1M / weekRepositoryHomepagenpmAtom feed
8.15.9 is the newest release of 8.x.
In short
11 breaking1 security
- Breaking
auto-install-peers: enabled by default. - Breaking
dedupe-peer-dependents: enabled by default. - Breaking
resolve-peers-from-workspace-root: enabled by default. - Breaking
save-workspace-protocol: set torollingby default. - Breaking
resolution-mode: set tolowest-directby default. - Breaking
publishConfig.linkDirectory: enabled by default. - Breaking
Lockfile v6 is adopted. This new format improves the readability of the lockfile by removing hashes from package IDs. It also has some rearrangement of fields in the
importerssection. The newpnpm-lock.yamlfile is more resistant to git merge conflicts! - Breaking
The registry field is removed from the
resolutionobject inpnpm-lock.yaml.
Security
1 advisory affects 8.0.0; 8.6.8 fixes them
- Highpnpm incorrectly parses tar archives relative to specificationGHSA-5r98-f33j-g8h7 · 1 Aug 2023Fixed in 8.6.8
Release note
We are excited to announce the latest release of pnpm! To install it, check the installation page.
image
Major Changes
Node.js 14 Support Discontinued
If you still require Node.js 14, don't worry. We ship pnpm bundled with Node.js. This means that regardless of which Node.js version you've installed, pnpm will operate using the necessary Node.js runtime. For this to work you need to install pnpm either using the standalone script or install the @pnpm/exe package.
Configuration Updates
- Breaking
auto-install-peers: enabled by default. - Breaking
dedupe-peer-dependents: enabled by default. - Breaking
resolve-peers-from-workspace-root: enabled by default. - Breaking
save-workspace-protocol: set torollingby default. - Breaking
resolution-mode: set tolowest-directby default. - Breaking
publishConfig.linkDirectory: enabled by default.
Most of the configuration changes are related to peer dependencies. Most of these settings were implemented long ago, and we recommended them to users encountering peer dependency issues. The recently added dedupe-peer-dependents resolved many such problems. With these new defaults, pnpm will face significantly fewer issues during migration from other package managers.
Lockfile Modifications
- Breaking
Lockfile v6 is adopted. This new format improves the readability of the lockfile by removing hashes from package IDs. It also has some rearrangement of fields in the
importerssection. The newpnpm-lock.yamlfile is more resistant to git merge conflicts! - Breaking
The registry field is removed from the
resolutionobject inpnpm-lock.yaml. - Breaking
A lockfile is generated even for projects with no dependencies.
Other Changes
- Breaking
When there's a
filesfield in thepackage.json, only the files that are listed in it will be deployed. The same logic is applied when injecting packages. This behaviour can be changed by setting thedeploy-all-filessetting totrue(Related issue #5911). - Breaking
Direct dependencies are deduped. If a dependency is present in both a project and the workspace root, it will only be linked to the workspace root.
Migration Instructions
Before updating pnpm to v8 in your CI, regenerate your pnpm-lock.yaml. To upgrade your lockfile, run pnpm install and commit the changes. Existing dependencies will not be updated; however, due to configuration changes in pnpm v8, some missing peer dependencies may be added to the lockfile and some packages may get deduplicated.
You can commit the new lockfile even before upgrading Node.js in the CI, as pnpm v7 already supports the new lockfile format.
pnpm v7 Support
pnpm v7 will likely not receive any new features, but it will continue to get bug fixes for a few months and vulnerability fixes for at least a year.
Our Gold Sponsors
Our Silver Sponsors
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.