From c6472c189f830c9b6d975b2ea03108bd40878c19 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 7 Mar 2026 17:51:35 +0000 Subject: [PATCH] chore: land #39056 Node version hint sync (thanks @onstash) Land contributor change from #39056 and append changelog credit for @onstash. Co-authored-by: Santosh Venkatraman --- CHANGELOG.md | 1 + openclaw.mjs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67f4f88ce77..50253478d38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -243,6 +243,7 @@ Docs: https://docs.openclaw.ai - CLI/Docs memory help accuracy: clarify `openclaw memory status --deep` behavior and align memory command examples/docs with the current search options. (#31803) Thanks @JasonOA888 and @Avi974. - Auto-reply/allowlist store account scoping: keep `/allowlist ... --store` writes scoped to the selected account and clear legacy unscoped entries when removing default-account store access, preventing cross-account default allowlist bleed-through from legacy pairing-store reads. Thanks @tdjackey for reporting and @vincentkoc for the fix. - Security/Nostr: harden profile mutation/import loopback guards by failing closed on non-loopback forwarded client headers (`x-forwarded-for` / `x-real-ip`) and rejecting `sec-fetch-site: cross-site`; adds regression coverage for proxy-forwarded and browser cross-site mutation attempts. +- CLI/bootstrap Node version hint maintenance: replace hardcoded nvm `22` instructions in `openclaw.mjs` with `MIN_NODE_MAJOR` interpolation so future minimum-Node bumps keep startup guidance in sync automatically. (#39056) Thanks @onstash. ## 2026.3.2 diff --git a/openclaw.mjs b/openclaw.mjs index 60aada1bd64..248db52ea44 100755 --- a/openclaw.mjs +++ b/openclaw.mjs @@ -26,9 +26,9 @@ const ensureSupportedNodeVersion = () => { process.stderr.write( `openclaw: Node.js v${MIN_NODE_VERSION}+ is required (current: v${process.versions.node}).\n` + "If you use nvm, run:\n" + - " nvm install 22\n" + - " nvm use 22\n" + - " nvm alias default 22\n", + ` nvm install ${MIN_NODE_MAJOR}\n` + + ` nvm use ${MIN_NODE_MAJOR}\n` + + ` nvm alias default ${MIN_NODE_MAJOR}\n`, ); process.exit(1); };