Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I get this error when I run 'bower install'?

I am using this middleman project and trying to run the bower install and get the following...

bower not-cached    git://github.com/jquery/jquery.git#~2.0
bower resolve       git://github.com/jquery/jquery.git#~2.0
bower not-cached    git://github.com/appleboy/normalize.scss.git#~2.1
bower resolve       git://github.com/appleboy/normalize.scss.git#~2.1
bower not-cached    git://github.com/Modernizr/Modernizr.git#~2.6.2
bower resolve       git://github.com/Modernizr/Modernizr.git#~2.6.2
bower ECMDERR       Failed to execute "git ls-remote --tags --heads git://github.com/jquery/jquery.git", exit code of #128

Additional error details:
fatal: unable to connect to github.com:
github.com[0: 192.30.252.128]: errno=Connection refused

Thanks!

like image 996
Antonio Pavicevac-Ortiz Avatar asked Apr 01 '14 13:04

Antonio Pavicevac-Ortiz


People also ask

How does Bower install work?

To get started, Bower works by fetching and installing packages from all over, taking care of hunting, finding, downloading, and saving the stuff you're looking for. Bower keeps track of these packages in a manifest file, bower.

How do you install Bower Windows?

To install Bower on Windows, you are required to install NPM (Node Package Manager) first. Using NPM, we can easily install the Bower front-end package manager. If you have installed NPM on windows, you can use the “npm install -g bower” command in the command prompt to install Bower on windows.

Is Bower still relevant?

Bower has been deprecated by its creators The open source project continues to be maintained for the benefit of existing users, but this is a prime reason not to continue using the platform.

What is Gulp and Bower?

Bower can be classified as a tool in the "Front End Package Manager" category, while gulp is grouped under "JS Build Tools / JS Task Runners". Some of the features offered by Bower are: Bower operates at a lower level than previous attempts at client-side package management – such as Jam, Volo, or Ender.


1 Answers

I had a similar issue and was due my network had certain ports blocked. What I tried (and worked) was forcing git to use "https" connections instead of "git" ones. Hope it help:

git config --global url."https://".insteadOf git://
like image 176
fjf Avatar answered Sep 21 '22 10:09

fjf