Bower Error – fatal: unable to connect to github.com

Standard

If you come across below mentioned issue while installing client side packages like jquery, angular etc using bower.

I type below command:

bower install angular --save

Command Output:

2015-11-13_16-41-00

Solution:

Step 1: Look for .gitconfig in your user profile (I am using windows [don’t kill me !!!])

c: \users\me\.gitconfig

2015-11-13_16-47-48

Step 2: Open it in editor and paste below code

[url "https://"]
    insteadOf = git://
[url "https://github.com"]
    insteadOf = git@github.com

2015-11-13_16-50-46

Now execute command on CMD, this will resolve the issue.

2015-11-13_16-51-52

Alternate Solution:

Try to feed URL into bower command directly from github

bower install https://github.com/angular/angular -save
Advertisements

One thought on “Bower Error – fatal: unable to connect to github.com

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s