yarn add --dev @chainlink/contracts 显示错误:权限被拒绝公钥

问题描述 投票:0回答:1

**运行yarn add --dev @chainlink/contracts时显示错误:权限被拒绝:公钥

Error:

Exit code: 128
Command: git
Arguments: ls-remote --tags --heads ssh://[email protected]/ricmoo/ens-normalize.js.git
Directory: /Users/vatsalsharma/hardhat-fund-me-fcc/hardhat-fund-me-fcc
Output:
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

错误图片 你好,你能告诉我这里有什么错误吗?

我尝试运行 npm 命令,它显示不兼容的对等依赖关系。

npm blockchain solidity yarnpkg hardhat
1个回答
0
投票

错误消息看起来像是从 github 获取包时出现一些问题,因此身份验证可能存在一些问题。您是否仅在使用

@chainlink/contracts
包时遇到此问题,或者在不同的包中也出现类似的错误?我认为您应该尝试在您的计算机上设置 SSH 密钥(如果您还没有这样做的话)。

© www.soinside.com 2019 - 2024. All rights reserved.