我正在Visual Studio 2015中构建一个Web应用程序。我支持公司代理。通过凉亭安装包不起作用。
我尝试了以下变通方法。
使用以下设置在解决方案中创建.bowerrc文件。
{
"proxy": "http://xxx.xxx.xxx.xxx:Port",
"https-proxy": "http://xxx.xxx.xxx.xxx:Port",
"strict-ssl": false
}
已安装Git。更改了git配置以使用https://而不是git://
当我运行以下命令时
凉亭安装
我收到以下错误。
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;没有错误
知道出了什么问题吗?
答案 0 :(得分:1)
您需要使用代理设置设置HTTP_PROXY和HTTPS_PROXY env var才能访问代理后面的git