🦀 ClawHub
OpenClaw Upgrade
by @hyqdq888
Upgrade OpenClaw to the latest version in environments unable to access GitHub by using yarn to bypass git dependency issues.
TERMINAL
clawhub install openclaw-upgrade📖 About This Skill
openclaw-upgrade Skill
功能
在无法访问 GitHub 的网络环境下升级 OpenClaw 到最新版本。适用场景
ECONNRESET 或 git-remote 相关错误触发条件
用户提到:使用方法
方式一:使用 yarn(推荐)
yarn global add openclaw@latest
方式二:检查升级结果
openclaw status | grep Update
yarn global list --depth=0 | grep openclaw
为什么用 yarn 而不是 npm
问题根源:
ssh://git@github.com/ 或 https://codeload.github.com/ 下载yarn 的优势:
故障排查
如果 yarn 也失败
1. 检查网络连接:curl -I https://registry.yarnpkg.com
2. 尝试使用淘宝 yarn 镜像:
yarn config set registry https://registry.npmmirror.com
yarn global add openclaw@latest
升级后验证
# 检查版本
openclaw status检查二进制文件
which openclaw重启 Gateway(如果需要)
openclaw gateway restart
注意事项
案例记录
时间: 2026-03-16 环境: 阿里云 ECS (iZbp11fabmqqfedfdynx3eZ) 问题: npm update 失败 6 次,GitHub 网络不可达 解决: 使用yarn global add openclaw@latest 成功升级到 2026.3.13