常见问题
常见问题解答。
安装问题
Q: npm install 失败
A: 尝试以下步骤:
```bash
清除缓存
npm cache clean --force
删除 node_modules
rm -rf node_modules package-lock.json
重新安装
npm install ```
Q: 命令找不到
A: 检查 PATH:
```bash
添加到 PATH
export PATH="$PATH:$(npm prefix -g)/bin"
验证安装
which openclaw ```
使用问题
Q: 无法连接通道
A: 验证凭证:
```bash
检查配置
openclaw channels status
重新登录
openclaw channels logout whatsapp openclaw channels login whatsapp ```
Q: 响应慢
A: 检查网络和资源:
```bash
系统资源
openclaw system resources
网络延迟
openclaw doctor --network ```
配置问题
Q: 配置文件在哪
A: 默认位置:
- Linux/macOS:
~/.openclaw/config/config.json - Windows:
%USERPROFILE%\.openclaw\config\config.json
Q: 如何重置配置
```bash openclaw reset --config --force ```