Bower library problems

I am using bower to install dependencies and various libraries in my project. But I am getting a fatal error. The git: // link appears to be replaced with instead of

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.

      

Thank you, Ankit Tanna

+3


source to share


2 answers


Open a terminal and write:

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

      



This will force git to replace the protocol.

Also if you include github repos in bower.json you can try replacing 'git: //' with 'https: //' from the git url in the file.

+3


source


Solution to the problem:

Find .gitconfig file

 [user]
        name = 1wQasdTeedFrsweXcs234saS56Scxs5423
        email = ankittanna@hotmail.com
    [credential]
        helper = osxkeychain
    [url ""]
        insteadOf = git://
    [url "https://"]
    [url "https://"]
        insteadOf = git://

      

would be empty url = "replace it with url =" https: // "



[user]
    name = 1wQasdTeedFrsweXcs234saS56Scxs5423
    email = ankittanna@hotmail.com
[credential]
    helper = osxkeychain
[url "https://"]
    insteadOf = git://
[url "https://"]
[url "https://"]
    insteadOf = git://

      

This will work :)

Happy Bowling

+2


source







All Articles