Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bower ECMDERR Failed to execute "git ls-remote --tags --heads > [email protected]:mobify/bellows.git", exit code of #128

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 [email protected]: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.

like image 730
Rupendra Avatar asked Sep 18 '14 15:09

Rupendra


1 Answers

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://
like image 54
ahmed hamdy Avatar answered Sep 23 '22 08:09

ahmed hamdy