bower不在Visual Studio 2015 Preview中工作

Ana*_*i M 8 c# bower bower-install visual-studio-2015 asp.net-core

我正在Visual Studio 2015中构建一个Web应用程序.我支持公司代理.通过凉亭安装包不起作用.

我尝试了以下变通方法.

  1. 使用以下设置在解决方案中创建.bowerrc文件.

    {
      "proxy": "http://xxx.xxx.xxx.xxx:Port",
      "https-proxy": "http://xxx.xxx.xxx.xxx:Port",
      "strict-ssl": false
    }
    
    Run Code Online (Sandbox Code Playgroud)
  2. 安装Git.更改了git配置以使用https://而不是git://

当我运行以下命令
bower install时,
我收到以下错误.

bower ECMDERR无法执行"git ls-remote --tags --heads https://github.com/jzaefferer/jquery-validation.git ",退出代码为#128

其他错误详细信息:致命:无法访问" https://github.com/jzaefferer/jquery-validation.git/ ":连接到github.com:443失败; 没错

知道出了什么问题吗?

agu*_*ars 1

您需要使用代理设置来设置 HTTP_PROXY 和 HTTPS_PROXY env var,以便在代理后面访问 git