openclaw - 💡(How to fix) Fix Node minimum version enforcement is too low (22.16 vs required 22.19+) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#83898Fetched 2026-05-20 03:47:15
View on GitHub
Comments
1
Participants
2
Timeline
10
Reactions
1
Timeline (top)
mentioned ×3subscribed ×3closed ×1commented ×1

Error Message

CLAUDE.md documents the runtime minimum as Node 22.19+, but the launcher enforces MIN_NODE_MINOR = 16. Users on Node 22.16–22.18 pass the version gate but may be running on versions where required APIs (compile-cache, module hooks, etc.) behave differently or are absent. The mismatch also means the error message printed to stderr tells users to install Node 22.16 when the project actually needs 22.19.

Fix Action

Fix / Workaround

Severity: medium / Confidence: high / Category: bug Triage: confirmed-bug Detected against: openclaw v2026.5.18 (latest stable at time of scan, 2026-05-18) Tooling: clawpatch 0.3.0 + acpx/claude-sonnet-4-5 via Brad Mills protocol


Standardized clawpatch finding. Persistent in v2026.5.18 (not resolved by upgrading from v2026.5.12). Finding ID: fnd_sig-feat-cli-command-134cd3621e-_36f35fe6d1.

Code Example

const MIN_NODE_MAJOR = 22;
const MIN_NODE_MINOR = 16;
const MIN_NODE_VERSION = `${MIN_NODE_MAJOR}.${MIN_NODE_MINOR}`;
RAW_BUFFERClick to expand / collapse

Severity: medium / Confidence: high / Category: bug Triage: confirmed-bug Detected against: openclaw v2026.5.18 (latest stable at time of scan, 2026-05-18) Tooling: clawpatch 0.3.0 + acpx/claude-sonnet-4-5 via Brad Mills protocol

Evidence

  • openclaw.mjs:9-11 (MIN_NODE_MINOR)
const MIN_NODE_MAJOR = 22;
const MIN_NODE_MINOR = 16;
const MIN_NODE_VERSION = `${MIN_NODE_MAJOR}.${MIN_NODE_MINOR}`;

Reasoning

CLAUDE.md documents the runtime minimum as Node 22.19+, but the launcher enforces MIN_NODE_MINOR = 16. Users on Node 22.16–22.18 pass the version gate but may be running on versions where required APIs (compile-cache, module hooks, etc.) behave differently or are absent. The mismatch also means the error message printed to stderr tells users to install Node 22.16 when the project actually needs 22.19.

Reproduction

Run node --version → 22.17.0, then openclaw --help. The version check passes and the process continues instead of printing the upgrade message.

Recommendation

Change MIN_NODE_MINOR to 19 (matching the documented 22.19 minimum) and update MIN_NODE_VERSION accordingly.

Why existing tests miss this

There are no tests for the launcher entry point at all; the listed test files exercise runtime contracts and plugin manifests, not the launcher's version guard.

Suggested regression test

Add a unit test (or a snapshot test in a CI step) that imports/parses openclaw.mjs and asserts MIN_NODE_MAJOR === 22 && MIN_NODE_MINOR === 19.

Minimum fix scope

Single constant change: MIN_NODE_MINOR = 19 in openclaw.mjs.


Standardized clawpatch finding. Persistent in v2026.5.18 (not resolved by upgrading from v2026.5.12). Finding ID: fnd_sig-feat-cli-command-134cd3621e-_36f35fe6d1.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Node minimum version enforcement is too low (22.16 vs required 22.19+) [1 comments, 2 participants]