pnpm 11.0
pnpm 11 来了!此版本加强了在 v10 版本周期中引入的安全默认设置,取消了用于发布的 npm CLI 回退,转而使用原生实现,使用单个 SQLite 数据库替换了每个包的 JSON 存储索引,并隔离了全局安装,使它们不再相互干扰。
🌐 pnpm 11 is here! This release tightens the security defaults introduced throughout the v10 cycle, drops the npm CLI fallback for publishing in favor of a native implementation, replaces the JSON-per-package store index with a single SQLite database, and isolates global installs so they no longer interfere with each other.
它还需要 Node.js 22 或更高版本——pnpm 本身现在是纯 ESM。
🌐 It also requires Node.js 22 or newer — pnpm itself is now pure ESM.
从 v10 升级?请参阅 从 v10 迁移到 v11 指南。大多数配置更改是机械性的,可以通过 pnpm-v10-to-v11 codemod 应用。
🌐 Upgrading from v10? See the Migrating from v10 to v11 guide. Most config changes are mechanical and can be applied by the pnpm-v10-to-v11 codemod.
