diff --git a/website/tutorial.html b/website/tutorial.html index 0b7c297..4190069 100644 --- a/website/tutorial.html +++ b/website/tutorial.html @@ -477,6 +477,7 @@ npm config get registry
# 全局安装
npm install -g openclaw@latest
@@ -486,6 +487,35 @@ npm install -g openclaw@latest --registry=https://registry.npmmirror.com
# 验证
openclaw --version
+# 如果没有 pnpm,先安装
+npm install -g pnpm
+
+# 用 pnpm 安装 OpenClaw
+pnpm add -g openclaw@latest
+pnpm approve-builds -g
+openclaw onboard --install-daemon
+
+git clone https://github.com/openclaw/openclaw.git
+cd openclaw && pnpm install && pnpm ui:build && pnpm build
+pnpm link --global
+openclaw --version
+
+SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latest
+# 添加到 ~/.zshrc 或 ~/.bashrc
+export PATH="$(npm prefix -g)/bin:$PATH"
+source ~/.zshrc
+# 推荐:启动向导 + 安装后台服务
@@ -522,6 +552,20 @@ openclaw dashboard # 打开网页控制台
如果你是第一次配置 AI 模型,以下模型配置最简单,适合入门:
+ +| 模型 | 配置难度 | 说明 |
|---|---|---|
| Kimi (月之暗面) | ⭐ 最简单 | 注册即用,向导直接选择 |
| 智谱 GLM | ⭐ 简单 | 免费额度,配置直观 |
| 通义千问 Qwen | ⭐ 简单 | 阿里云生态,免费额度大 |
| DeepSeek | ⭐⭐ 简单 | 需填 Custom Provider + Base URL |
| 腾讯混元 | ⭐⭐ 中等 | 腾讯云生态 |
# 跳过 sharp 本地编译
+SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latest
+sharp 是图片处理库,某些系统缺少编译工具会报错。上面的环境变量可跳过本地编译。
# 查看全局 bin 目录
+npm prefix -g
+
+# 添加到 PATH(写入 ~/.zshrc 或 ~/.bashrc)
+export PATH="$(npm prefix -g)/bin:$PATH"
+source ~/.zshrc
+
+原生 Windows 安装可能遇到路径、权限、编译工具问题。推荐使用 WSL2:
+# 安装 WSL2(管理员 PowerShell)
+wsl --install
+
+# 然后在 WSL2 Ubuntu 中按 Mac/Linux 步骤安装
+
# 重置所有配置
openclaw reset --scope full
@@ -1001,6 +1066,7 @@ docker compose up -d