Minor Changes
-
Add
--cpu
,--libc
, and--os
topnpm install
,pnpm add
, andpnpm dlx
to customizesupportedArchitectures
via the CLI #7510. -
Added support for resolving and downloading the Node.js runtime specified in the devEngines field of
package.json
.Usage example:
{ "devEngines": { "runtime": { "name": "node", "version": "^24.4.0", "onFail": "download" } } }
When running
pnpm install
, pnpm will resolve Node.js to the latest version that satisfies the specified range and install it as a dependency of the project. As a result, when running scripts, the locally installed Node.js version will be used.Unlike the existing options,
useNodeVersion
andexecutionEnv.nodeVersion
, this new field supports version ranges, which are locked to exact versions during installation. The resolved version is stored in the pnpm lockfile, along with an integrity checksum for future validation of the Node.js content's validity.Related PR: #9755.
Patch Changes
- Fix a bug in which
pnpm add
downloads packages whoselibc
differ frompnpm.supportedArchitectures.libc
. - The integrities of the downloaded Node.js artifacts are verified #9750.
- Allow
dlx
to parse CLI flags and options between thedlx
command and the command to run or between thedlx
command and--
#9719. pnpm install --prod
should removing hoisted dev dependencies #9782.
Platinum Sponsors
|
Gold Sponsors
|
|
|
|
|