1

I'm new to git, bower and electron etc.

I'm trying to install some dependencies through command line like this

bower install angular angular-route angular-material --save 

It gives me error

enter image description here

I found this solution that says

You are probably behind a firewall. Try cloning via https – that has a higher chance of not being blocked

Then I tried this

bower install https://github.com/angular/bower-angular.git

but it still giving me error

enter image description here

Basically Error is

ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular.git", exit code of #128 fatal: unable to connect to github.com: github.com[0: 192.30.252.128]: errno=No such file or directory

Additional error details: fatal: unable to connect to github.com: github.com[0: 192.30.252.128]: errno=No such file or directory

Can anyone have Idea what I'm doing wrong or what I'm missing here? I'm totally stuck over here. Any kind of help will be appreciated.

Community
  • 1
  • 1
Naila Akbar
  • 3,033
  • 4
  • 34
  • 76

3 Answers3

2

try this

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

check this question for more details: How to fix bower ECMDERR

Community
  • 1
  • 1
younes sofiane
  • 441
  • 1
  • 8
  • 22
  • still same. Additional error details: fatal: unable to access 'https://github.com/angular/bower-angular.git/': Operation timed out after 0 milliseconds with 0 out of 0 bytes received – mark Jan 18 '17 at 08:41
1

I had some invalid proxy settings in .bowerrc Removed them. All good :)

Kristian
  • 2,071
  • 23
  • 15
-1

I managed to get it to work after i changed my .gitconfig file to sslVerify = false

Here is how my .gitconfig looks like:

[http]
        sslVerify = false
[url "https://"]
        insteadOf = git://
[url "https://github.com/"]
        insteadOf = git://github.com/
B. Go
  • 1,436
  • 4
  • 15
  • 22