我有问题上传我的聚合物组件到gh页。
我从教程中尝试了一下:
# git clone the Polymer tools repository somewhere outside of your
# element project
git clone git://github.com/Polymer/tools.git
# Create a temporary directory for publishing your element and cd into it
mkdir temp && cd temp
# Run the gp.sh script. This will allow you to push a demo-friendly
# version of your page and its dependencies to a GitHub pages branch
# of your repository (gh-pages). Below, we pass in a GitHub username
# and the repo name for our element
../tools/bin/gp.sh <username> <test-element>
# Finally, clean-up your temporary directory as you no longer require it
cd ..
rm -rf temp但它不起作用。在终端中,我有这样的错误:

我漏掉了什么吗?
发布于 2017-07-21 20:55:19
这就是你的问题:
公钥权限被拒绝(
)。
致命:无法从远程存储库读取。
请确保您具有正确的访问权限
并且存储库存在。
要让脚本按预期运行,您需要将公共ssh密钥添加到github项目中。Settings -> Deploy Key -> Add deploy Key。
或者,您可以在gp.sh中手动执行从github拉取和推送到github的步骤。
如果您不想拆分脚本,请尝试手动运行命令,这应该是可行的。脚本中唯一的多行命令是以下命令:
echo "{
\"directory\": \"components\"
}
" > .bowerrc祝好运。
https://stackoverflow.com/questions/44001441
复制相似问题