bower不在Visual Studio 2015 Preview中工作

时间:2015-02-27 07:24:42

标签: c# bower asp.net-core visual-studio-2015 bower-install

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

我尝试了以下变通方法。

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

    {
      "proxy": "http://xxx.xxx.xxx.xxx:Port",
      "https-proxy": "http://xxx.xxx.xxx.xxx:Port",
      "strict-ssl": false
    }
    
  2. 已安装Git。更改了git配置以使用https://而不是git://

  3. 当我运行以下命令时     凉亭安装
    我收到以下错误。

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

    其他错误详情: 致命:无法访问' https://github.com/jzaefferer/jquery-validation.git/': 连接到github.com失败了:443;没有错误

    知道出了什么问题吗?

1 个答案:

答案 0 :(得分:1)

您需要使用代理设置设置HTTP_PROXY和HTTPS_PROXY env var才能访问代理后面的git