我正在使用纱线,但它给私人git存储库提供了以下错误。 npm成功安装了这个仓库。
yarn install v1.2.1
info No lockfile found.
[1/4] Resolving packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads ssh://git@github.com/test/testconfigs.git
Directory: /Users/admin/Projects/Demo/myProject
Output:
Permission denied (publickey).
fatal: Could not read from remote repository.
答案 0 :(得分:0)
这对我有用:
将 GitHub 密钥添加到授权主机列表中:
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
原答案:
Git error: "Host Key Verification Failed" when connecting to remote repository