VS 2015 + Bower: Does not work behind firewall

前端 未结 12 2204
一向
一向 2020-11-29 01:40

Problem

In Visual Studio 2015, using bower, my package restores fail when behind a firewall with an error similar to:

ECMDERR Failed to exec

12条回答
  •  無奈伤痛
    2020-11-29 02:32

    Running VS's Bower from the command line with a mapped home folder

    The answer given by @Rogerio Soares is a good one and I think many people will find it very useful (myself included).

    That said, here at work, the tools I can install are very, very restricted (meaning I can't install another version of Bower without getting permission from lots of people), plus my home directory is mapped to a network share at z:\ by policy. Each time I issued git config --global to configure git, the config settings would be placed in z:\.gitconfig. This config file is honored just fine using full-blown Git SCM. Apparently, however, libgit2sharp (used by the version of Git embedded with Visual Studio 2015) needs this file to be at c:\username\.gitconfig.

    So after copying my .gitconfig file from z:\ to c:\username\, I was able to run Visual Studio's version of bower directly from the command line.

提交回复
热议问题