问题
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.
回答1:
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://
回答2:
That is indeed an odd error. Interestingly, the git URL looks malformed.
git@github.om:mobify/bellows.git
There's no 'c' in .com. It is also weird that pinny is trying to pull bellows in; they're totally unrelated.
Could you let me know what OS and version of bower you're using?
I'll try to reproduce this and let you know if I find anything.
来源:https://stackoverflow.com/questions/25916640/bower-ecmderr-failed-to-execute-git-ls-remote-tags-heads-gitgithub-ommo