git - 从私有(private) gitlab 存储库从 bower 存储库安装

标签 git bower gitlab bower-install

我尝试安装一个我注册到本地私有(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/

相关文章:

git - 阻塞代理后面的私有(private) bower 。需要什么异常(exception)?

ruby - 在 Jekyll 页面中使用 Liquid 标签不起作用

xcode - Xcode 的源代码控制 "Show Remote Status"菜单选项的用途和功能是什么?

GIT:如何在维护大量 fork 的同时避免重复提交?

bower - 安装bower包时出错

gruntjs - NPM vs. Bower vs. Browserify vs. Gulp vs. Grunt vs. Webpack

git - Android Studio - 无法使用新系统和旧备份文件将我的代码推送到 GitHub Enterprise...怎么办

java - 如何修复调用失败来自服务器 : Unauthorized in Android studio 的意外响应

.bat 脚本中的 git 克隆

permissions - 如何在 gitlab 中授予用户特定的文件访问权限?