Repository navigation
Description
Summary of the issue
The cf launcher checks only the Node.js major version. Its upgrade message says “Node.js v22 or newer,” and the launcher gives no version diagnostic on an earlier Node 22 release outside the supported range. The message gives no supported minor version to install.
Expected behaviour
The startup check and upgrade guidance should agree with the declared support range, ^22.23.0 || ^24.22.0 || ^26.12.0. The diagnostic should identify an out-of-range runtime and give upgrade guidance that leads to a supported version.
Version of cf used
1.0.0-rc.1 from npm
System information and package versions
Linux x64, npm 12.2.2. Also tested the published build from main with Node.js 22.18.0, 22.23.0, and 20.19.0.
Reproduction (optional)
On Linux x64, start in an empty directory with npm, tar, and jq. Fetch the npm package and the three Node binaries, then invoke each binary directly so the shell cannot substitute a different Node version.
npm pack [email protected] [email protected] [email protected] [email protected]
mkdir cf probe-home
tar -xzf cf-1.0.0-rc.1.tgz -C cf --strip-components=1
jq -r '.engines.node' cf/package.json
for version in 22.18.0 22.23.0 20.19.0; do
mkdir "node-$version"
tar -xzf "node-linux-x64-$version.tgz" -C "node-$version" --strip-components=1 package/bin/node
node_bin="./node-$version/bin/node"
test "$("$node_bin" --version)" = "v$version" || exit 1
printf 'Node %s\n' "$version"
exit_code=0
env -i HOME="$PWD/probe-home" PATH=/usr/bin:/bin "$node_bin" ./cf/bin/cf --version || exit_code=$?
printf 'cf --version exit: %s\n' "$exit_code"
doneRelevant error logs (optional)
Both tested builds exited 0 and printed the cf version with empty stderr on Node 22.18.0 and on the supported Node 22.23.0 control. As a separate read-only check, schema dns records create also returned metadata with httpMethod equal to POST on both Node 22 binaries.
Both builds exited 1 on Node 20.19.0 and told the user to upgrade to “Node.js v22 or newer.”
Evidence
- Expected source: The CLI README points to the package engines for supported versions.
- Failure source: The direct launcher runs above and the startup check, whose comment calls for keeping it in sync with the package engines.
- Evidence provenance: observed
- Local verification: reproduced
- Reproduction completeness: complete
Restoration check
Run the packaged launcher with the same three Node binaries. The out-of-range Node 22 binary should receive a startup diagnostic that identifies the mismatch. The Node 20 error should direct users to the declared supported releases. The in-range Node 22 control should still print the cf version, exit 0, and give no version diagnostic.
References
- chore(deps): update dependency undici to v8 #363 — The engine range was narrowed here. The launcher still uses the prior major-version rule.
- fix: allow Node.js 25 in engines range #489 — This proposed adding Node 25 to the support range. The startup mismatch occurs with the existing range.
Triage assessment
- Impact level: P3
- Assessment status: supported
- Impact basis: The startup check omits version guidance for the tested out-of-range Node 22 release and gives misleading upgrade advice on Node 20. The tested version and schema commands succeeded on the earlier Node 22 release.
- Workaround status: available
- Workaround basis: Use a Node version listed in the package engines. The in-range Node 22 control ran both commands successfully.
Activity
zachshallbetter commentedon Nov 24, 2026
I reproduced this with
cf 1.0.0-rc.5on macOS arm64. The package declares^22.23.0 || ^24.22.0 || ^26.12.0. Runningcf --versiondirectly with each Node binary gave:20.19.0exited1and recommended “Node.js v22 or newer.”22.18.0exited0with no warning, despite being outside the declared range.22.23.0exited0with no warning, as expected.