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 <santosh.venk@gmail.com>
This commit is contained in:
Peter Steinberger
2026-03-07 17:51:35 +00:00
parent 7735a0b85c
commit c6472c189f
2 changed files with 4 additions and 3 deletions

View File

@@ -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);
};