bower ECMDERR无法执行“git ls-remote --tags - heads> git@github.om:mobify / bellows.git“,退出代码#128 [英] bower ECMDERR Failed to execute "git ls-remote --tags --heads > git@github.om:mobify/bellows.git", exit code of #128

查看:2469
本文介绍了bower ECMDERR无法执行“git ls-remote --tags - heads> git@github.om:mobify / bellows.git“,退出代码#128的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


bower install

我试图使用bower安装pinny1.0插件。 github.com/mobify/pinny.git#pinny-1.0rel =nofollow noreferrer> https://github.com/mobify/pinny.git#pinny-1.0


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


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



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



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


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



我试图检查Github错误跟踪上的问题,并在# 1426
,但没有多少意思,因为我不在某些代理服务器上工作。

解决方案

使用 Bower 安装 packages 时出现问题。

这个问题是由于 bower代理配置造成的,您需要使 bower 使用 http:// 安装包时,而不是 git:// 。您可以使用 .bowerrc 文件解决此问题。



创建 .bowerrc 文件并设置代理 https-proxy 配置:

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

更多关于 Bower Documentation for .bowerrc File



在StackOverflow中关于 bower代理配置的两个问题:
第一个问题第二个问题



更新

如果第一个解决方案不起作用,您可以尝试建议 @ thebignet 转换为 GitHub



设置代理 https-proxy strict-ssl 配置到 .bowerrc 文件:

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

但是必须运行Command从终端:

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


I am trying to install the pinny1.0 plugin using bower as:

bower install https://github.com/mobify/pinny.git#pinny-1.0

But meanwhile installing the plugin, I am getting issues as:

bower ECMDERR Failed to execute "git ls-remote --tags --heads git@github.com:mobify/bellows.git", exit code of #128

Additional error details: Host key verification failed. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

I am not sure how this is redirecting from pinny1.0 to bellows.git.

I have tried to check the issue on Github bug tracking and find some discussion at #1426 but did not get much idea as I am not working on some proxy server.

解决方案

I had The same Problem with Install packages using Bower.

This Problem happen because bower proxy configuration, you need to make bower use http:// Instead of git:// when install packages. you can Solve this problem using .bowerrc File.

Just create .bowerrc File and set proxy and https-proxy configuration :

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

More About Bower Documentation for .bowerrc File

There Two Questions about bower proxy configuration in StackOverflow : First Question , second Question

Update:

IF the First Solution Does not Work, you can try suggest @thebignet into same issue on GitHub

Set proxy, https-proxy and strict-ssl configuration into .bowerrc File :

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

But you must run Command from terminal:

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

这篇关于bower ECMDERR无法执行“git ls-remote --tags - heads&gt; git@github.om:mobify / bellows.git“,退出代码#128的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆