You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

安装solc0.8.9等依赖时遇Git公钥权限错误求助

Solidity环境安装报错排查记录(已解决)

问题场景

在Udemy学习Solidity课程,需按教程安装solc 0.8.9,教程给出的操作步骤:

  • mkdir inbox-updated
  • cd inbox-updated
  • npm init -y
  • npm install solc@0.8.9 web3 mocha ganache-cli @truffle/hdwallet-provider

报错情况

执行第4步安装命令时,Git Bash触发Git Credential Manager授权请求,完成授权后出现如下错误:

npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/truffle/hdwallet-provider.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.

解决状态

2023/01/11已自行解决该问题。

内容的提问来源于stack exchange,提问作者Satoshi Okazaki

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.08 15:00:51