帮助中心 >  技术知识库 >  云服务器 >  服务器教程 >  npm安装clawdbot报错:npm ERR! git@github.com: Permission denied (publickey)

npm安装clawdbot报错:npm ERR! git@github.com: Permission denied (publickey)

2026-02-03 17:53:35 502

最近OpenClaw 项目火起来了。接触的用户也骤然增多,大多数人都是想尝个新,但是遇到了各种问题。
在 Windows 10 下安装中我们也遇到了npm install -g clawdbot 出现错误

npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/layouts/Admin.js.git
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.


这里我们只需要执行下面这个命令就可以解决:

git config --global http.sslverify "false"


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题:
XML 地图