我尝试安装一个我注册到本地私有(private) Bower 实例的 Bower 存储库。 git 主机是一个私有(private)的 gitlab 实例。
bower install bower-test 给我错误
bower bower-test#* not-cached git://github.com/EvandroLG/bower-test.git#*
bower bower-test#* resolve git://github.com/EvandroLG/bower-test.git#*
bower bower-test#* ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/EvandroLG/bower-test.git", exit code of #128
Additional error details:
fatal: remote error:
Repository not found.
我知道 private-bower 运行正常,因为我注册了一个可以安装的 github.com 存储库。
我的.bowerrc
{
"registry" : {
"register" : "http://localhost:5678"
},
"search": [
"http://localhost:5678"
]
}
我能跑
bower install http://myprivategitlabip/bower/bower-test.git
成功(提供凭据)。
但是我喜欢运行
bower install bower-test
有什么建议吗?
最佳答案
可能回答有点晚了,但我自己遇到了这个问题并通过以下步骤修复了它:
生成 key (即):
ssh-keygen -o -f repo-rsa-key
将公钥添加到 Gitlib 存储库
- 将私钥添加到 Gitlab runner
之后应该可以正常构建。
关于git - 从私有(private) gitlab 存储库从 bower 存储库安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28864334/