#更新版本失败

1 messages · Page 1 of 1 (latest)

jagged light
#

如题,更新版本失败,显示错误如下,怎么解决:Updating OpenClaw...

|
o ✗ Updating via package manager (71.21s)
npm error errno: 'ECONNREFUSED',
npm error syscall: 'connect',
npm error address: '127.0.0.1',
npm error port: 10809,
npm error type: 'system'
npm error }
npm error
npm error If you are behind a proxy, please make sure that the
npm error 'proxy' config is set properly. See: 'npm help config'
npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache_logs\2026-05-07T05_39_31_181Z-debug-0.log
|
o ✗ Retrying update without optional deps (71.07s)
npm error errno: 'ECONNREFUSED',
npm error syscall: 'connect',
npm error address: '127.0.0.1',
npm error port: 10809,
npm error type: 'system'
npm error }
npm error
npm error If you are behind a proxy, please make sure that the
npm error 'proxy' config is set properly. See: 'npm help config'
npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache_logs\2026-05-07T05_40_42_424Z-debug-0.log

Update Result: ERROR
Root: C:\Users\Administrator\AppData\Roaming\npm\node_modules\openclaw
Reason: global update (omit optional)
Before: 2026.3.8
After: 2026.3.8

Total time: 143.94s

earnest lanternBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

jagged light
#

#

现状彻底打不开了,出现这个错误Error: Config validation failed: channels.discord.streaming: invalid config: must be object
PS C:\Users\Administrator> openclaw onboard --install-daemon
Invalid config at C:\Users\Administrator.openclaw\openclaw.json:\n- channels.discord.streaming: invalid config: must be object

  • channels.discord.guilds.1480823065066868826.channels.1480823065628901432: invalid config: must NOT have additional properties
  • channels.discord.guilds.1480823065066868826.channels.1480823065628901430: invalid config: must NOT have additional properties
jagged light
#

如题,更新版本失败,显示错误如下,怎么解决:Updating OpenClaw...

|
o ✗ Updating via package manager (71.21s)
npm error errno: 'ECONNREFUSED',
npm error syscall: 'connect',
npm error address: '127.0.0.1',
npm error port: 10809,
npm error type: 'system'
npm error }
npm error
npm error If you are behind a proxy, please make sure that the
npm error 'proxy' config is set properly. See: 'npm help config'
npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache_logs\2026-05-07T05_39_31_181Z-debug-0.log
|
o ✗ Retrying update without optional deps (71.07s)
npm error errno: 'ECONNREFUSED',
npm error syscall: 'connect',
npm error address: '127.0.0.1',
npm error port: 10809,
npm error type: 'system'
npm error }
npm error
npm error If you are behind a proxy, please make sure that the
npm error 'proxy' config is set properly. See: 'npm help config'
npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache_logs\2026-05-07T05_40_42_424Z-debug-0.log

Update Result: ERROR
Root: C:\Users\Administrator\AppData\Roaming\npm\node_modules\openclaw
Reason: global update (omit optional)
Before: 2026.3.8
After: 2026.3.8

Total time: 143.94s

jagged light
#

在呢

jaunty hullBOT
#

在的。这个不是 OpenClaw 包本身坏了,是 npm 被配置成走本机代理 127.0.0.1:10809,但这个端口没有代理服务在监听,所以连接被拒绝了。

先看你是不是本来就要用代理:

npm config get proxy
npm config get https-proxy
npm config get registry

如果你不需要代理,直接清掉 npm 代理后重试:

npm config delete proxy
npm config delete https-proxy
npm config delete noproxy
#
openclaw update

如果还是报 127.0.0.1:10809,说明可能是 Windows 环境变量里也设了代理,PowerShell 执行:

[Environment]::SetEnvironmentVariable("HTTP_PROXY", $null, "User")
[Environment]::SetEnvironmentVariable("HTTPS_PROXY", $null, "User")
[Environment]::SetEnvironmentVariable("ALL_PROXY", $null, "User")

然后重新打开一个终端再跑:

openclaw update
#

如果你确实需要代理,那就启动你的代理软件,或者把 npm 的代理端口改成实际监听端口。可以用这个查 10809 是否有人在监听:

netstat -ano | findstr 10809

参考更新文档:https://docs.openclaw.ai/install/updating

jagged light
#

我需要代理,用的是v2rayn

jaunty hullBOT
#

那就不用删代理,重点是让 npm 指向 v2rayN 实际开的 HTTP 代理端口

v2rayN 里先确认:

  1. v2rayN 正在运行,并且节点已连接
  2. 右键托盘图标 → 系统代理选“自动配置系统代理”或“全局模式”(至少先测试用)
  3. 打开 v2rayN 设置,找本地监听端口:一般是:
    • HTTP 代理:127.0.0.1:10809
    • SOCKS 代理:127.0.0.1:10808

然后 PowerShell 测一下端口有没有监听:

netstat -ano | findstr 10809

如果没有输出,说明 v2rayN 没有开 10809,去 v2rayN 设置里看真实 HTTP 端口。