build: align Node 22 guidance with 22.16 minimum

This commit is contained in:
Altay
2026-03-12 15:26:36 +03:00
committed by Ayaan Zaidi
parent 0a8d2b6200
commit b0f717aa02
8 changed files with 12 additions and 10 deletions

View File

@@ -153,7 +153,9 @@ async function resolveBinaryPath(binary: string): Promise<string> {
if (binary === "bun") {
throw new Error("Bun not found in PATH. Install bun: https://bun.sh");
}
throw new Error("Node not found in PATH. Install Node 22+.");
throw new Error(
"Node not found in PATH. Install Node 24 (recommended) or Node 22 LTS (22.16+).",
);
}
}

View File

@@ -251,7 +251,7 @@ describe("resolveSystemNodeInfo", () => {
"/Users/me/.fnm/node-22/bin/node",
);
expect(warning).toContain("below the required Node 22+");
expect(warning).toContain("below the required Node 22.16+");
expect(warning).toContain(darwinNode);
});
});

View File

@@ -151,7 +151,7 @@ export function renderSystemNodeWarning(
}
const versionLabel = systemNode.version ?? "unknown";
const selectedLabel = selectedNodePath ? ` Using ${selectedNodePath} for the daemon.` : "";
return `System Node ${versionLabel} at ${systemNode.path} is below the required Node 22+.${selectedLabel} Install Node 22+ from nodejs.org or Homebrew.`;
return `System Node ${versionLabel} at ${systemNode.path} is below the required Node 22.16+.${selectedLabel} Install Node 24 (recommended) or Node 22 LTS from nodejs.org or Homebrew.`;
}
export { resolveStableNodePath };

View File

@@ -362,7 +362,7 @@ async function auditGatewayRuntime(
issues.push({
code: SERVICE_AUDIT_CODES.gatewayRuntimeNodeSystemMissing,
message:
"System Node 22+ not found; install it before migrating away from version managers.",
"System Node 22 LTS (22.16+) or Node 24 not found; install it before migrating away from version managers.",
level: "recommended",
});
}