Bower install Libraries Issues

Ankit Tanna

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

ianaya89

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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related