代理后面的凉亭

编程入门 行业动态 更新时间:2024-10-11 21:21:29
本文介绍了代理后面的凉亭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

bower install具有以下设置的超时失败(某些设置没有用...):

bower install behind a proxy fails in timeout with the following settings (some set are useless...) :

git config --global http.proxy fr-proxy.example:3128 git config --global https.proxy fr-proxy.example:3128 export http_proxy=fr-proxy.example:3128 export https_proxy=fr-proxy.example:3128 npm config set proxy fr-proxy.example:3128 npm config set https-proxy fr-proxy.example:3128 npm config set registry registry.npmjs/

我还尝试了Bower和bower clean cache的安装/卸载.

I have also tried an install/uninstall of bower and a bower clean cache.

推荐答案

编辑.bowerrc文件并添加所需的代理配置:

Edit your .bowerrc file and add the wanted proxy configuration:

{ "proxy":"<host>:<port>", "https-proxy":"<host>:<port>" }

如果在经过身份验证的代理后面工作,则应包括用户名和密码,如下所示:

If working behind an authenticated proxy, user and password should be included like this:

{ "proxy":"<user>:<password>@<host>:<port>", "https-proxy":"<user>:<password>@<host>:<port>" }

通常,.bowerrc在bower.json旁边.而且,如果bower.json文件附近没有.bowerrc文件,则可以自己创建一个.

Usually, the .bowerrc is next to the bower.json. And if there is no .bowerrc file near the bower.json file, you can create one by yourself.

更多推荐

代理后面的凉亭

本文发布于:2023-11-14 17:51:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1588143.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:凉亭

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!