From e9f8a01fc3ef78f47e07a5e7e32b5dea02157a80 Mon Sep 17 00:00:00 2001 From: dongsheng123132 <90887123+dongsheng123132@users.noreply.github.com> Date: Wed, 18 Mar 2026 19:03:15 +0800 Subject: [PATCH] fix: upgrade Node to v22.16.0 (OpenClaw requires >=22.16.0) and fix config format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Node v22.14.0 → v22.16.0 in all install scripts - Config: remove deprecated agent.* format, use minimal gateway-only config - OpenClaw auto-migrates agent config on first run --- install/install.ps1 | 2 +- website/finish.ps1 | 6 +++--- website/install.ps1 | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/install/install.ps1 b/install/install.ps1 index 924d2f9..041d778 100644 --- a/install/install.ps1 +++ b/install/install.ps1 @@ -18,7 +18,7 @@ $RUNTIME_DIR = "$UCLAW_DIR\runtime" $CORE_DIR = "$UCLAW_DIR\core" $DATA_DIR = "$UCLAW_DIR\data" $CONFIG_PATH = "$DATA_DIR\.openclaw\openclaw.json" -$NODE_VERSION = "v22.14.0" +$NODE_VERSION = "v22.16.0" $MIRROR = "https://registry.npmmirror.com" $NODE_MIRROR = "https://npmmirror.com/mirrors/node" diff --git a/website/finish.ps1 b/website/finish.ps1 index 12485f3..bcae48e 100644 --- a/website/finish.ps1 +++ b/website/finish.ps1 @@ -17,9 +17,9 @@ if (-not (Test-Path $NODE)) { Write-Host "下载 Node.js..." [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $ProgressPreference = 'SilentlyContinue' - Invoke-WebRequest -Uri "https://npmmirror.com/mirrors/node/v22.14.0/node-v22.14.0-win-x64.zip" -OutFile "$env:TEMP\node.zip" -UseBasicParsing + Invoke-WebRequest -Uri "https://npmmirror.com/mirrors/node/v22.14.0/node-v22.16.0-win-x64.zip" -OutFile "$env:TEMP\node.zip" -UseBasicParsing Expand-Archive "$env:TEMP\node.zip" "$env:TEMP\node-ext" -Force - Move-Item "$env:TEMP\node-ext\node-v22.14.0-win-x64" "$UCLAW\runtime\node-win-x64" -Force + Move-Item "$env:TEMP\node-ext\node-v22.16.0-win-x64" "$UCLAW\runtime\node-win-x64" -Force Remove-Item "$env:TEMP\node.zip","$env:TEMP\node-ext" -Recurse -Force -ErrorAction SilentlyContinue } Write-Host "[OK] Node: $(& $NODE --version)" @@ -40,7 +40,7 @@ Write-Host "[OK] OpenClaw: $(Test-Path "$CORE\node_modules\openclaw\openclaw.mjs # Step 3: 默认配置 (DeepSeek) $cfg = "$DATA\.openclaw\openclaw.json" if (-not (Test-Path $cfg)) { - $json = '{"gateway":{"mode":"local","auth":{"token":"uclaw"}},"agent":{"model":"deepseek-chat","apiKey":"","baseUrl":"https://api.deepseek.com/v1"}}' + $json = '{"gateway":{"mode":"local","auth":{"token":"uclaw"}}}' [IO.File]::WriteAllText($cfg, $json, (New-Object System.Text.UTF8Encoding $false)) } Write-Host "[OK] Config" diff --git a/website/install.ps1 b/website/install.ps1 index 924d2f9..041d778 100644 --- a/website/install.ps1 +++ b/website/install.ps1 @@ -18,7 +18,7 @@ $RUNTIME_DIR = "$UCLAW_DIR\runtime" $CORE_DIR = "$UCLAW_DIR\core" $DATA_DIR = "$UCLAW_DIR\data" $CONFIG_PATH = "$DATA_DIR\.openclaw\openclaw.json" -$NODE_VERSION = "v22.14.0" +$NODE_VERSION = "v22.16.0" $MIRROR = "https://registry.npmmirror.com" $NODE_MIRROR = "https://npmmirror.com/mirrors/node"