openclaw-updater

飞牛 OpenClaw 更新助手。触发词:「更新openclaw」「升级openclaw」。功能:检测当前运行的 openclaw 版本 → 查找最新稳定版本 → 在 managed-install 目录内执行 npm install 覆盖更新 → 自动重启网关生效。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "openclaw-updater" with this command: npx skills add pandaltsgo/fnos-openclaw-updater

飞牛 OpenClaw 更新助手

关键原则

OpenClaw 安装在 managed-install 目录,即 $OPENCLAW_DATA_DIR/openclaw(飞牛系统标准路径,普通用户无权限写 /vol1/@appcenter/ 系统层)。

路径公式:{OPENCLAW_DATA_DIR}/openclaw 每个飞牛系统的 OPENCLAW_DATA_DIR 不同,但 managed-install 结构一致。 不要硬编码 /vol1/@apphome/... 路径,动态获取更安全。
不要npm i -g openclaw(会报 EACCES 权限错误),也不要openclaw update(同样是全局安装路径)。

正确更新方式

在 managed-install 目录内直接 npm install

# 1. 查询当前运行版本
openclaw --version

# 2. 查询最新版本
npm view openclaw version

# 3. 在 managed-install 目录内更新(会覆盖旧版本,自动生效)
cd "$OPENCLAW_DATA_DIR/openclaw" && npm install openclaw@<最新版本>

# 4. 等待几秒让进程重新加载

更新流程(按顺序执行)

Step 1:确认当前版本和最新版本

openclaw --version
npm view openclaw version

比较两者:

  • 如果 openclaw --version >= npm view openclaw version,已是最新的,无需操作
  • 否则继续 Step 2

Step 2:在 managed-install 目录内安装

cd "$OPENCLAW_DATA_DIR/openclaw" && npm install openclaw@<最新版本>

等待 npm 完成(通常 1-2 分钟)。

Step 3:验证更新成功

openclaw --version

确认输出为新版本号。网关会自动在新版本下运行。

注意事项

  • 不要使用 sudonpm i -gopenclaw update——这些都会失败
  • 更新是覆盖安装,无需卸载
  • 网关进程会自动在新版本下运行,无需手动重启(除非有异常)
  • 遇到 EBADENGINE 警告(undici / node 版本提示)可以忽略,不影响更新

常见问题

症状原因解决
EACCES permission denied用了全局安装改用 managed-install 目录内 npm install
更新后版本没变进程缓存了旧路径等几秒再查,或确认 openclaw 路径指向正确目录
npm 下载慢网络问题可以给 npm 设置镜像:npm config set registry https://registry.npmmirror.com

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Waltz Flight Assistant Setup

Install, configure, verify, and use Waltz Flight Assistant in OpenClaw. Use when a user wants to search, book, or retrieve flights through Waltz, when the pl...

Registry SourceRecently Updated
General

StockEarning

这是 StockEarningCN 的 OpenClaw 技能/Skill插件入口说明。安装本目录后,你将获得一组可组合使用的技能

Registry SourceRecently Updated
General

AI版MBTI测试

You have two MBTIs — one in reality, one in the AI world. 8 mirror questions reveal your dual personality. 你有两个MBTI——一个在现实,一个在AI世界。8道镜像题,测出你的双面人格。

Registry SourceRecently Updated
General

Xiaohongshu Creator Marketplace (Pugongying) Follower Distribution API

Call GET /api/xiaohongshu-pgy/api/solar/kol/data/userId/fans_profile/v1 for Xiaohongshu Creator Marketplace (Pugongying) Follower Distribution through JustOn...

Registry SourceRecently Updated