Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 需要为纱线添加笑话提供密码_Git_Github_Npm_Yarnpkg - Fatal编程技术网

Git 需要为纱线添加笑话提供密码

Git 需要为纱线添加笑话提供密码,git,github,npm,yarnpkg,Git,Github,Npm,Yarnpkg,我正试图在我克隆到机器上的工作报告中添加笑话 C:\COMPANY_NAME\Work-Folder\frontend>yarn add jest yarn add v1.13.0 [1/4] Resolving packages... [2/4] Fetching packages... error Command failed. Exit code: 128 Command: git Arguments: ls-remote --tags --heads git@github.com:

我正试图在我克隆到机器上的工作报告中添加笑话

C:\COMPANY_NAME\Work-Folder\frontend>yarn add jest
yarn add v1.13.0
[1/4] Resolving packages...
[2/4] Fetching packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads git@github.com:COMPANY_NAME/SOME_REPO.git
Directory: C:\COMPANY_NAME\Work-Folder\frontend
Output:
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
当我使用Github Desktop for Windows尝试从源代码提取时,也会出现类似的问题。我设置了SSH密钥等,这样当我运行
git pull origin
时,命令提示符会询问我的密码

我认为对于上面的错误,我需要以某种方式提供Github或其他东西的密码


有没有办法解决这个问题

在“设置SSH密钥和内容”之后,首先检查SSH访问是否有效

If,和sshgit@github.com应该,不需要密码。

请首先使用不带密码短语的私钥,以避免与ssh代理打交道。

在“设置ssh密钥和内容”之后,首先检查ssh访问是否有效

If,和sshgit@github.com应该,不需要密码。
请首先使用不带密码短语的私钥,以避免处理ssh代理