mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 20:05:02 +00:00
build: align Node 22 guidance with 22.16 minimum
This commit is contained in:
@@ -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+).",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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 };
|
||||
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user