gpt4 book ai didi

git - yarn 不安装 git 私有(private)存储库

转载 作者:行者123 更新时间:2023-12-03 21:27:40 26 4
gpt4 key购买 nike

我正在使用 yarn ,但它对私有(private) git 存储库给出了以下错误。 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.

最佳答案

这对我有用:
将 GitHub key 添加到授权主机列表中:

ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
原答案:
Git error: "Host Key Verification Failed" when connecting to remote repository

关于git - yarn 不安装 git 私有(private)存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46902623/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com