[英]Yarn not install git private repositories
I am using yarn but it is giving an below error for private git repositories.我正在使用纱线,但它为私有 git 存储库提供以下错误。 npm installed this repo successfully.
npm 成功安装了这个 repo。
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.
This works for me:这对我有用:
Add the GitHub key to the list of authorized hosts:将 GitHub 密钥添加到授权主机列表中:
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
Original answer:原答案:
Git error: "Host Key Verification Failed" when connecting to remote repository Git 错误:连接到远程存储库时“主机密钥验证失败”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.