如何正确配置 Visual Studio 工具以在代理后工作?
最佳答案
为 npm 包管理器配置代理设置
npm config set proxy http://proxyuser:proxypwd@proxy.server.com:8080
. npm config set https-proxy http://proxyuser:proxypwd@proxy.server.com:8080
. 为 git 配置代理设置
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
. git config --global https.proxy http://proxyuser:proxypwd@proxy.server.com:8080
. 为 Bower 配置代理设置
{
"registry": "http://bower.herokuapp.com",
"proxy": "http://proxyuser:proxypwd@proxy.server.com:8080",
"https-proxy": "http://proxyuser:proxypwd@proxy.server.com:8080"
}
警告 :如果您的代理密码中有特殊字符,则必须对代理 url 进行编码。例子:
等等 :)
关于visual-studio-2015 - 如何在代理后面为 Visual Studio 配置 npm、git 和 bower,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41038067/