无法安装聚合物及其所有组件

时间:2014-07-12 12:12:38

标签: git github ssh rsa polymer

我正在尝试安装聚合物及其所有组件,如此处所述 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.

2 个答案:

答案 0 :(得分:2)

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

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下载一个不存在的回购:

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

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

这样剧本终于奏效了,但我不知道Polymer(看起来不错),我不知道你是否有可用的设置。祝你好运!

答案 1 :(得分:1)

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