需要提供纱线添加密码的密码

时间:2019-02-17 01:52:54

标签: git github npm yarnpkg

我正在尝试byte[] file_content = {wherever you get it}; XmlDocument xml = new XmlDocument(); xml.Load(new MemoryStream(file_content)); 到我克隆到计算机上的工作仓库。

yarn add jest

当我使用Windows的Github Desktop尝试从源中拉出时,也会发生类似的问题。我设置了SSH密钥和其他东西,以便在我运行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. 时,命令提示符询问我的密码。

我认为,对于上述错误,我需要以某种方式向git pull origin提供我的Github密码或其他内容。

关于如何解决此问题的任何想法?

1 个答案:

答案 0 :(得分:0)

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

如果done properly和ssh git@github.com应该generate an welcome message,而不要求输入密码。
首先请使用没有密码的私钥 ,以避免与ssh-agent接触。