Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bower install Libraries Issues

I am using bower to install dependencies and various libraries in my project. But I am getting a fatal error. The URL's git:// portion seems to be replaced by insteadof

I am using Mac OS X and Terminal for commands.

Is there any solution for this?

pdc1-4s6zyr1:~ administrator$ bower install **git://github.com/jquery/jquery.git**
bower not-cached    git://github.com/jquery/jquery.git#*
bower resolve       git://github.com/jquery/jquery.git#*
bower ECMDERR       Failed to execute "git ls-remote --tags --heads git://github.com/jquery/jquery.git", exit code of #128

Additional error details:
fatal: '.insteadofgithub.com/jquery/jquery.git' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Thanks, Ankit Tanna

like image 428
Ankit Tanna Avatar asked May 30 '26 20:05

Ankit Tanna


1 Answers

Open your terminal and write this:

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

This will force git replace the protocol.

Also if you are including github repos in your bower.json you can try replacing 'git://' by 'https://' of git URL's in the file.

like image 92
ianaya89 Avatar answered Jun 01 '26 09:06

ianaya89



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!