【问题标题】:installing from bower repository from private gitlab repository从私人 gitlab 存储库的 Bower 存储库安装
【发布时间】:2015-05-06 00:35:11
【问题描述】:

我尝试安装我注册到本地私人凉亭实例的凉亭存储库。 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

有什么建议吗?

【问题讨论】:

  • 如果你使用 bower search,你会得到哪些结果?

标签: git bower gitlab bower-install


【解决方案1】:

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

  • 生成密钥(即):

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

  • 将公钥添加到 Gitlib 存储库

  • 将私钥添加到 Gitlab 运行器

之后应该可以正常构建。

【讨论】:

    猜你喜欢
    • 2023-01-26
    • 1970-01-01
    • 2014-11-11
    • 2014-05-12
    • 2019-06-21
    • 2021-10-21
    • 2014-08-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多