2

I'm going through some ASP.NET tutorials and I've encountered an error I don't know how to resolve. I just added a Bower pacakge(?) and Visual Studio (Enterprise 2015) placed it under a Dependencies branch. Under that is the Bower branch and in that the package appears. Both Dependencies and Bower say "- not installed" after them. I've right-clicked and selected the "Restore" option. Viusal Studio works for a while and then says an error occured. The following error appears in the Output window:

PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\git
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\Bower.cmd" install --force-latest
bower underscore#~1.83      not-cached git://github.com/jashkenas/underscore.git#~1.83
bower underscore#~1.83         resolve git://github.com/jashkenas/underscore.git#~1.83
bower underscore#~1.83         ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/jashkenas/underscore.git", exit code of #-532462766

I'm not terribly familiar with Git, but I know I shouldn't have to have it installed in my workstation. Anyone know what's going on?

Frecklefoot
  • 1,660
  • 2
  • 21
  • 52

1 Answers1

2

I believe bower uses Git client to pull packages directly from GitHub using entries in the packages bower.json file.

Specific to your problem, Git (and therefore bower) is unable to connect to GitHub due to firewall issues. Similar issue here

You can set global git variables (e.g. git config --global xxx) to set proxy etc. to hopefully work around this problem.

According to the error your Git Client is installed locally at C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\git

Community
  • 1
  • 1
Pepto
  • 1,434
  • 10
  • 13
  • Thanks, Pepto. I'll look into this when I get a chance, but I've just been pulled over into something else that requires all of my time. Will look at ASAP, but may be several weeks. :/ – Frecklefoot Feb 04 '16 at 17:57
  • Lol don't I know that feeling =) Happy coding sir! – Pepto Feb 04 '16 at 18:02
  • Just awarded you the bounty. If it doesn't actually solve the problem, you gave me a lot to go on! Thanks! – Frecklefoot Feb 08 '16 at 19:10