Install
openclaw skills install openclaw-installer-cnOpenClaw 中文安装诊断 - 自动检测安装问题、修复常见错误、生成配置。适合:国内用户、新手安装。
openclaw skills install openclaw-installer-cn自动检测安装问题,修复常见错误,生成推荐配置。
自动检查:
常见问题自动修复:
根据使用场景生成:
诊断我的 OpenClaw 安装
Agent 会:
修复 OpenClaw 安装问题
自动执行:
生成 OpenClaw 国内优化配置
输出:
node -v # 需要 v18.0.0 以上
npm -v # 需要 9.0.0 以上
# 测试 npm 源
npm config get registry
# 测试 OpenClaw 源
curl -s -o /dev/null -w '%{http_code}' https://registry.npmjs.org/openclaw
which openclaw
openclaw --version
openclaw status
# 切换淘宝镜像
npm config set registry https://registry.npmmirror.com
# 或使用 cnpm
npm install -g cnpm --registry=https://registry.npmmirror.com
cnpm install -g openclaw
# 修复 npm 权限
sudo chown -R $(whoami) ~/.npm
sudo chown -R $(whoami) /usr/local/lib/node_modules
# 或使用 nvm 管理 Node
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install 20
nvm use 20
# 清理缓存
npm cache clean --force
rm -rf node_modules
rm package-lock.json
# 重装
npm install
# 检查架构
uname -m
# M1/M2 Mac 需要 Rosetta
softwareupdate --install-rosetta
{
"model": {
"default": "deepseek-chat",
"providers": {
"deepseek": {
"apiKey": "${DEEPSEEK_API_KEY}",
"baseURL": "https://api.deepseek.com"
},
"zhipu": {
"apiKey": "${ZHIPU_API_KEY}",
"baseURL": "https://open.bigmodel.cn"
}
}
},
"network": {
"proxy": null,
"timeout": 60000
},
"heartbeat": {
"enabled": true,
"intervalMs": 300000
}
}
# OpenClaw 配置
export OPENCLAW_CONFIG_DIR="$HOME/.openclaw"
export DEEPSEEK_API_KEY="your-key-here"
export ZHIPU_API_KEY="your-key-here"
# 国内镜像加速
export npm_config_registry="https://registry.npmmirror.com"
🔍 OpenClaw 安装诊断
━━━━━━━━━━━━━━━━━━━━
✅ Node.js: v20.10.0
✅ npm: 10.2.0
✅ 系统架构: arm64 (Apple Silicon)
⚠️ 网络: npm 使用官方源,建议切换镜像
❌ OpenClaw: 未安装
📋 修复建议:
1. 切换 npm 镜像: npm config set registry https://registry.npmmirror.com
2. 安装 OpenClaw: npm install -g openclaw
3. 验证安装: openclaw --version
创建:2026-03-12 版本:1.0