OpenClaw 初体验(一)-安装与卸载(Windows)
一、环境准备1、安装Node.jsGIT最好选择长期支持的LTS版本不推荐选择最新24版本。官方地址 https://nodejs.org/en/download/2、验证安装是否成功node -v # 输出v20.xx.xx版本号即为成功 npm -v # 输出相应版本号二、安装OpenClaw1、以管理员身份运行 CMD/PowerShell2、执行命令安装OpenClawnpm install -g openclawlatest --registryhttps://registry.npmmirror.com验证安装openclaw --version3、初始化配置仅提供了模型选择完成后配置openclaw onboard --install-daemon①API Key 提供方式选Paste API key now随便填字符串本地Ollama无需真实Key仅用于过验证。②聊天渠道配置选Skip for now暂时跳过Telegram/WhatsApp等渠道本地使用无需配置。③技能配置选 No跳过技能安装后续需要再装。④钩子功能配置选 Skip for now跳过扩展钩子新手无需配置。4、大功告成默认地址http://127.0.0.1:18789/启动命令 openclaw gateway start三、常见报错问题一: 安装选择skip for now然后回车没反应仅上下移动并没有选中必须先按空格选项前面变为[]再回车问题二新安装的git需要 SSH 密钥认证但可以转换为 HTTPS 方式进行访问。npm error code 128 npm error An unknown git error occurred npm error command git --no-replace-objects ls-remote ssh://gitgithub.com/whiskeysockets/libsignal-node.git npm error gitgithub.com: Permission denied (publickey). npm error fatal: Could not read from remote repository. npm error npm error Please make sure you have the correct access rights npm error and the repository exists. npm notice npm notice New major version of npm available! 10.8.2 - 11.11.1 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.11.1 npm notice To update run: npm install -g npm11.11.1配置如下git config --global user.name 你的名字 #已配置请忽略 git config --global user.email 你的邮箱 #已配置请忽略 git config --global url.https://github.com/.insteadOf ssh://gitgithub.com/ #url重写 git config --global url.https://github.com/.insteadOf gitgithub.com: #url重写 git config --global --list #配置检查四、卸载openclawopenclaw uninstall