44
55> 本章节将手把手教你安装 OpenClaw。
66
7+ > ⚠️ ** 当前基线** :截至 ** 2026-04-13** ,本教程推荐使用 ** OpenClaw v2026.4.11(稳定版)** ;` v2026.4.12-beta.1 ` 仅作为预发布参考。运行时优先使用 ** Node 24** 。
8+
79![ OpenClaw 安装界面] ( https://upload.maynor1024.live/file/1771085321300_installation-interface.png )
810
911
@@ -108,7 +110,7 @@ OpenClaw在Mac上体验最好,因为:
108110- 推荐 macOS 14 Sonoma 或 macOS 15 Sequoia
109111
110112** 前置软件** :
111- - Node.js 22.0.0+( 会自动安装)
113+ - Node.js 24(推荐)/ 22.16+(兼容路径, 会自动安装)
112114- Homebrew(可选,用于安装依赖)
113115
114116### 安装步骤
@@ -143,7 +145,7 @@ curl -fsSL https://openclaw.ai/install.sh | bash
143145``` bash
144146openclaw --version
145147```
146- 如果显示版本号(如 ` 2026.3.2 ` ),说明安装成功!
148+ 如果显示版本号(如 ` 2026.4.11 ` ),说明安装成功!
147149
148150#### 第四步:初始化配置
149151
@@ -296,7 +298,7 @@ openclaw uninstall
296298- Windows 10 或 Windows 11
297299
298300** 前置软件** :
299- - Node.js 22.0.0+
301+ - Node.js 24(推荐)/ 22.16+(兼容路径)
300302
301303### 部署方式选择
302304
@@ -349,16 +351,16 @@ sudo apt update && sudo apt upgrade -y
349351sudo apt install -y curl git wget build-essential
350352```
351353
352- #### 第四步:安装Node.js 22+
354+ #### 第四步:安装Node.js 24(推荐)
353355
354356``` bash
355357# 添加NodeSource仓库
356- curl -fsSL https://deb.nodesource.com/setup_22 .x | sudo -E bash -
358+ curl -fsSL https://deb.nodesource.com/setup_24 .x | sudo -E bash -
357359
358360# 安装Node.js
359361sudo apt install -y nodejs
360362
361- # 验证版本(必须≥22 .x)
363+ # 验证版本(推荐 v24 .x)
362364node -v
363365npm -v
364366```
@@ -411,12 +413,12 @@ openclaw gateway run --port 18789
411413
412414适合不想使用WSL2的纯Windows用户。
413415
414- #### 第一步:安装Node.js 22+
416+ #### 第一步:安装Node.js 24(推荐)
415417
416418** 方法一:官网下载安装**
417419
4184201 . 访问 https://nodejs.org/zh-cn
419- 2 . 下载Windows安装包(LTS版本22.x )
421+ 2 . 下载Windows安装包(推荐 24.x 版本 )
4204223 . 运行安装程序,勾选「自动安装必要的工具」
421423
422424#### 第二步:验证Node.js安装
@@ -596,7 +598,7 @@ openclaw config set channels.feishu '{"enabled":true,"appId":"cli_xxx","appSecre
596598
597599``` bash
598600# Ubuntu/Debian
599- curl -fsSL https://deb.nodesource.com/setup_22 .x | sudo -E bash -
601+ curl -fsSL https://deb.nodesource.com/setup_24 .x | sudo -E bash -
600602sudo apt-get install -y nodejs
601603
602604# 验证安装
@@ -744,7 +746,7 @@ openclaw onboard
744746 openclaw --version
745747 ```
746748
747- 如果显示版本号(如 ` 2026.3.2 ` ),说明OpenClaw已预装成功。
749+ 如果显示版本号(如 ` 2026.4.11 ` ),说明OpenClaw已预装成功。
748750
749751![ OpenClaw镜像] ( https://upload.maynor1024.live/file/1770742213992_02-openclaw-image.png )
750752
@@ -1010,7 +1012,7 @@ openclaw onboard
10101012### 前置要求
10111013
10121014** 必需环境** :
1013- - Node.js 22.0.0+ (必需)
1015+ - Node.js 24(推荐)/ 22.16+(兼容路径) (必需)
10141016- pnpm(可选,推荐用于源码构建)
10151017
10161018** 推荐配置** :
@@ -3123,11 +3125,13 @@ openclaw config set gateway.port 18790
31233125
31243126> 🔄 ** 保支持最新** :定期升级OpenClaw以获得新功能、性能优化和安全修复。
31253127
3126- > ⚠️ ** 重要提示** :目前推荐使用 ** 2026.3.2** 版本。2026.2.12 版本存在已知 bug([ Issue #15141 ] ( https://github.com/openclaw/openclaw/issues/15141 ) ),会导致 heartbeat 和消息处理功能异常。
3128+ > ⚠️ ** 重要提示** :目前推荐使用 ** 2026.4.11(稳定版)** 。如果你只是想稳定跑通本教程,请不要直接把 ` v2026.4.12-beta.1 ` 当默认基线。
3129+
3130+ > 📝 ** 历史问题版本** :` 2026.2.12 ` 存在已知 bug([ Issue #15141 ] ( https://github.com/openclaw/openclaw/issues/15141 ) ),会导致 heartbeat 和消息处理功能异常。
31273131
31283132### 推荐版本
31293133
3130- ** 当前推荐版本** :2026.3.2
3134+ ** 当前推荐版本** :2026.4.11
31313135
31323136** 已知访问题版本** :
31333137- ❌ 2026.2.12:Session 路径验证 bug,影响 heartbeat 和 Telegram/飞书消息处理
@@ -3202,13 +3206,13 @@ which openclaw # 应该没有输出
32023206** 第四步:安装新版本**
32033207
32043208``` bash
3205- # 安装推荐版本 2026.3.2 (需要使用--force参数)
3206- npm install -g openclaw@2026.3.2 --force
3209+ # 安装推荐版本 2026.4.11 (需要使用--force参数)
3210+ npm install -g openclaw@2026.4.11 --force
32073211```
32083212> ⚠️ ** 版本选择说明** :
3209- > - 推荐安装 2026.3.2 版本(稳定)
3210- > - 避免安装 2026.2 .12 版本(存在 session 路径 bug)
3211- > - 如果需要最新功能,等待 2026.2.13+ 版本修复后再升级
3213+ > - 教程默认按 ` 2026.4.11 ` 稳定版编写
3214+ > - ` 2026.4 .12-beta.1 ` 是预发布版,适合尝鲜和验证新能力
3215+ > - 如果你只想稳定跑通教程,优先使用稳定版,不要把 beta 当默认基线
32123216
32133217> ⚠️ ** 为什么需要--force?**
32143218> npm会检测到已存在的文件,使用` --force ` 强制覆盖。
@@ -3250,7 +3254,7 @@ openclaw channels status
32503254```
32513255成功的输出应该显示:
32523256```
3253- 2026.3.2
3257+ 2026.4.11
32543258
32553259Runtime: running (pid xxxxx, state active)
32563260RPC probe: ok
@@ -3272,7 +3276,7 @@ Dashboard: http://127.0.0.1:18789/
32723276
32733277![ 升级完成验证] ( https://upload.maynor1024.live/file/1770949103492_image-20260213101814142.png )
32743278
3275- * 图:升级完成,版本更新到2026.3.2 *
3279+ * 图:升级完成,版本更新到2026.4.11 *
32763280
32773281### 方式二:官方脚本升级
32783282
@@ -3370,7 +3374,7 @@ npm error EEXIST: file already exists
33703374** 解决方案** :
33713375``` bash
33723376# 使用--force参数强制覆盖
3373- npm install -g openclaw@2026.3.2 --force
3377+ npm install -g openclaw@2026.4.11 --force
33743378```
33753379
33763380#### 访问题2:Gateway启动失败
@@ -3402,8 +3406,8 @@ current version is 2026.2.1-zh.3
34023406
34033407** 解决方案** :
34043408``` bash
3405- # 升级到推荐版本 2026.3.2
3406- npm install -g openclaw@2026.3.2 --force
3409+ # 升级到推荐版本 2026.4.11
3410+ npm install -g openclaw@2026.4.11 --force
34073411openclaw doctor --fix
34083412```
34093413
@@ -3508,7 +3512,7 @@ openclaw gateway restart
35083512
350935131 . ** 使用--force参数** :
35103514 ``` bash
3511- npm install -g openclaw@2026.3.2 --force
3515+ npm install -g openclaw@2026.4.11 --force
35123516 ```
35133517
351435182 . ** 运行doctor修复** :
@@ -3577,17 +3581,17 @@ openclaw gateway restart
35773581
35783582** 解决方案** :
357935831 . ** 不要升级到 2026.2.12**
3580- 2 . ** 如果已升级,回退到 2026.3.2 ** :
3584+ 2 . ** 如果已升级,回退到 2026.4.11 ** :
35813585 ``` bash
35823586 openclaw gateway stop
35833587 npm uninstall -g openclaw
3584- npm install -g openclaw@2026.3.2 --force
3588+ npm install -g openclaw@2026.4.11 --force
35853589 openclaw doctor --fix
35863590 openclaw gateway restart
35873591 ```
35883592
35893593** 推荐做法** :
3590- - 使用 2026.3.2 版本(当前最稳定)
3594+ - 使用 2026.4.11 版本(当前最稳定)
35913595- 等待 2026.2.13+ 版本修复后再升级
35923596- 关注官方 GitHub Issues 获取最新信息
35933597
@@ -3690,13 +3694,13 @@ curl -s https://api.github.com/repos/openclaw/openclaw/releases/latest
36903694 - Discord社区
36913695 - 飞书群组
36923696
3693- ### 升级案例:2026.2.1-zh.3 → 2026.3.2
3697+ ### 升级案例:2026.2.1-zh.3 → 2026.4.11
36943698
36953699以下是一次真实的升级案例,供参考。
36963700
36973701** 升级背景** :
36983702- 原版本:2026.2.1-zh.3(中文版)
3699- - 目标版本:2026.3.2 (推荐稳定版)
3703+ - 目标版本:2026.4.11 (推荐稳定版)
37003704- 升级原因:获取新功能和性能优化
37013705
37023706** 升级过程** :
@@ -3718,7 +3722,7 @@ curl -s https://api.github.com/repos/openclaw/openclaw/releases/latest
37183722
371937234 . ** 安装新版本** :
37203724 ``` bash
3721- npm install -g openclaw@2026.3.2 --force
3725+ npm install -g openclaw@2026.4.11 --force
37223726 ```
37233727
372437285 . ** 修复配置** :
@@ -3733,7 +3737,7 @@ curl -s https://api.github.com/repos/openclaw/openclaw/releases/latest
37333737
373437387 . ** 验证升级** :
37353739 ``` bash
3736- openclaw --version # 显示:2026.3.2
3740+ openclaw --version # 显示:2026.4.11
37373741 openclaw gateway status # 显示:running
37383742 ```
37393743
0 commit comments