Files
4cb926c546 fix(runtime): choose stable Node.js latest releases (#17492)
Resolve the Node.js `latest` selector to the newest stable entry of the
release index. When the index has no stable entry, which is what the
nightly, rc, and other prerelease channel indexes look like, fall back
to the first entry, so `node@nightly` keeps resolving to the newest
nightly build.

The fallback keeps the exported resolveNodeVersion/resolveNodeVersions
contract intact: callers that pass a prerelease mirror URL without a
release channel still get a version for `latest`.

Closes pnpm/pnpm#17490

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 23:35:11 +01:00
..

@pnpm/engine.runtime.node-resolver

Resolves a Node.js version specifier to an exact Node.js version

npm version

Installation

pnpm add @pnpm/engine.runtime.node-resolver

License

MIT