【问题标题】:bower ECMDERR Failed to execute "git ls-remote --tags --heads > git@github.om:mobify/bellows.git", exit code of #128bower ECMDERR 无法执行“git ls-remote --tags --heads > git@github.om:mobify/bellows.git”,退出代码 #128
【发布时间】:2014-11-13 00:41:12
【问题描述】:

我正在尝试使用 bower 安装 pinny1.0 插件:

凉亭安装https://github.com/mobify/pinny.git#pinny-1.0

但在安装插件的同时,我遇到了以下问题:

bower ECMDERR 无法执行“git ls-remote --tags --heads git@github.com:mobify/bellows.git",退出代码#128

其他错误详情:主机密钥验证失败。致命的:可以 未从远程存储库中读取。

请确保您拥有正确的访问权限和存储库 存在。

我不确定这是如何从 pinny1.0 重定向到 bellows.git。

我已尝试在 Github 错误跟踪上检查该问题,并在 #1426 找到一些讨论 但没有得到太多的想法,因为我没有在一些代理服务器上工作。

【问题讨论】:

    标签: github bower-install mobify mobify-js


    【解决方案1】:

    我在使用Bower 安装packages 时遇到了同样的问题。

    出现此问题是因为bower proxy configuration,您需要在安装packages 时使bower 使用http:// 而不是git://。你可以使用.bowerrc文件解决这个问题。

    只需创建.bowerrc文件并设置proxyhttps-proxy配置:

    {
      "proxy" : "http://<host>:<port>",
      "https-proxy" : "http://<host>:<port>"
    }
    

    更多关于Bower Documentation .bowerrc 文件

    StackOverflow 中有两个关于 bower proxy configuration 的问题: First Question , second Question

    更新

    如果第一个解决方案不起作用,您可以尝试在 GitHub 上向同一问题建议 @thebignet

    proxyhttps-proxystrict-ssl配置设置成.bowerrc文件:

    {
      "proxy"       : "http://<host>:<port>",
      "https-proxy" : "http://<host>:<port>",
      "strict-ssl"  : false
    } 
    

    但是你必须从终端运行命令:

    git config --global url."https://".insteadOf git://
    

    【讨论】:

    • 为我工作!谢谢
    • 这可能是一个基本问题,但我将 .bowerrc 文件放在哪里?
    • @VincentGauthier 将 .bowerrc 文件放入您的应用文件夹的根路径,例如 bower.json 文件和 package.json 文件
    【解决方案2】:

    这确实是一个奇怪的错误。有趣的是,git URL 看起来格式不正确。

    git@github.om:mobify/bellows.git
    

    .com 中没有“c”。 pinny 试图拉风箱也很奇怪。它们完全不相关。

    您能告诉我您使用的是什么操作系统和 bower 版本吗?

    我会尝试重现此内容,如果我发现任何内容,请告诉您。

    【讨论】:

    • 嗨,史蒂夫,对不起,这是一个错字,网址是 github.com:mobify。另一方面,操作系统是 windows 7 pro x64。我不是通过任何浏览器使用 git bash 来做的。我也想知道为什么安装pinny与波纹管有关?可能是由于一些内部依赖关系?另外仅供参考,我已经在 mu 应用程序的 bower_plugins 中安装了更新的波纹管。
    • 根本不应该相关。事实上,我似乎无法在 OSX 或 Windows 上重现这个问题,所以我有点困惑。你能发布你的 bower.json 吗?
    猜你喜欢
    • 1970-01-01
    • 2022-07-04
    • 2021-04-20
    • 2011-09-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-12
    • 2014-09-17
    相关资源
    最近更新 更多