【问题标题】:Unable to install polymer and all of it components无法安装聚合物及其所有组件
【发布时间】:2014-09-02 23:16:25
【问题描述】:

我正在尝试安装聚合物及其所有组件,如此处所述 http://www.polymer-project.org/resources/tooling-strategy.html#git

mkdir polymer_local; cd polymer_local
git clone https://github.com/Polymer/tools.git
./tools/bin/pull-all.sh

我不断收到所有数据包的此错误:

Repo:  Polymer/PointerEvents.git
Folder:  components/PointerEvents
Operation:  clone
Reason:  Cloning into 'PointerEvents'...

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Repo:  Polymer/topeka.git
Folder:  projects/topeka
Operation:  clone
Reason:  Cloning into 'topeka'...

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

【问题讨论】:

    标签: git github ssh rsa polymer


    【解决方案1】:

    我也失败了,但我注意到每次我遇到不同的错误。所以我让它循环运行并喝杯咖啡:

    while ! ./tools/bin/pull-all.sh; do date; echo sleep a bit ...; sleep 5; done
    

    半小时后它仍然在运行(总是失败),但失败点总是一样,克隆paper-scaffold的步骤:

    FAILED REPOS
    Repo:  Polymer/paper-scaffold.git
    Folder:  components/paper-scaffold
    Operation:  clone
    Reason:  Cloning into 'paper-scaffold'...
    
    ERROR: Repository not found.
    
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    
    FAILED SYNC
    

    经过一番挖掘,我发现它正在尝试从 GitHub 下载一个不存在的 repo:

    https://github.com/Polymer/paper-scaffold

    为了解决这个问题,我编辑了文件 ./tools/repo-configs/paper.json,删除了带有 paper-scaffold 的行,然后重新运行了 ./tools/bin/pull-all.sh。

    这样脚本终于可以工作了,但我不知道 Polymer(虽然看起来不错),而且我不知道你是否会有可用的设置。祝你好运!

    【讨论】:

    • 我尝试了你的建议。但由于某种原因,它仍然无法正常工作。进行更改后,您是否能够撤消所有回购?
    • 是的。顺便说一句,你今天克隆聚合物/工具了吗?如果您没有相同的版本,您可能会得到不同的结果。我的最新提交是f37e33443c606f93d1b5b384808c07da80368d1c。使用该版本以及我在帖子中写的更改,脚本可以成功运行。
    • 提交 f37e33443c606f93d1b5b384808c07da80368d1c。看起来是一样的。问题是我的失败点是很多包,而不仅仅是一个。
    • 对我来说只是一个。您是否尝试从第 1 步开始重新创建一个全新的 polymer_local 目录?
    • 是的。我认为这把钥匙发生了一些有趣的事情。我会在新机器上试一试,然后告诉你。
    【解决方案2】:

    你有 GitHub 的 set up a public/private key pair 吗?这个问题听起来很像在没有设置密钥的情况下尝试使用 SSH 克隆 GitHub 存储库时发生的情况:https://github.com/Polymer/tools/pull/27

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-23
      • 2021-03-03
      • 1970-01-01
      • 2017-07-06
      • 1970-01-01
      相关资源
      最近更新 更多