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

div*_*mod 6 git gitlab bower bower-install

我尝试安装一个我注册到当地私人凉亭实例的凉亭回购.git主机是一个私有的gitlab实例.

bower安装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.
Run Code Online (Sandbox Code Playgroud)

我知道private-bower运行正常,因为我注册了一个我可以安装的github.com存储库.

我的.bowerrc

{
  "registry" : {
    "register" : "http://localhost:5678"
  },
"search": [
      "http://localhost:5678"
   ]
}
Run Code Online (Sandbox Code Playgroud)

我可以跑

bower install http://myprivategitlabip/bower/bower-test.git
Run Code Online (Sandbox Code Playgroud)

成功(提供证书).

但我喜欢跑步

bower install bower-test
Run Code Online (Sandbox Code Playgroud)

有什么建议?

Ivo*_*men 0

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

  • 生成密钥(即):

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

  • 将公钥添加到 Gitlib 存储库

  • 添加私钥到Gitlab runner

之后应该会建立得很好。