我正在Visual Studio 2015中构建Web应用程序。我在公司代理后面。通过 bower 安装软件包不起作用。
我尝试了以下解决方法。
{
"proxy": "http://xxx.xxx.xxx.xxx:Port",
"https-proxy": "http://xxx.xxx.xxx.xxx:Port",
"strict-ssl": false
}
当我运行以下命令
bower 安装
我收到以下错误。
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;没错
知道出了什么问题吗?
最佳答案
您需要使用代理设置来设置HTTP_PROXY和HTTPS_PROXY env var,以便在代理后面访问git
关于c# - bower 在Visual Studio 2015预览中不起作用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/28759637/