Bower ECMDERR Failed to execute git ls-remote --tags,

I am new to bower and git and I got this error when I ran a command bower install

in my AngularJs project project:

bower ECMDERR Failed to execute git ls-remote --tags,

      

I tried the most popular solution, for example:

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

      

and also installed msysgit to allow git command line as mentioned here but still getting the same error.

Has anyone faced the same problem? BTW I'm working on a Win7 64 bit machine.

+3


source to share


1 answer


Ok, found the problem. I don't know why, but somehow my default Git folder is on the "H:" drive, so my ".gitconfig" file is on that. I guess that's why Git config -global url. "Https: //" .insteadOf git: // did not take effect due to the location of .gitconfig. Everything was solved after I moved the ".gitconfig" file to "C: / Users / logged in user".



+3


source







All Articles