从私人gitlab存储库从bower存储库安装

时间:2015-03-04 20:33:16

标签: git bower gitlab bower-install

我尝试安装我注册到当地私人凉亭实例的凉亭回购。 git主机是一个私有的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

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

回答可能有点晚,但我自己遇到了这个问题,并通过以下步骤对其进行了修复:

  • 生成密钥(即):

    ssh-keygen -o -f repo-rsa-key

  • 将公共密钥添加到Gitlib存储库

  • 向Gitlab运行程序添加私钥

那之后应该可以很好地构建。

相关问题