如何为 gem 设置代理服务器? [英] How can I set a proxy server for gem?
本文介绍了如何为 gem 设置代理服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法通过命令提示符安装 SASS.
I am unable to install SASS through command prompt.
我尝试了以下步骤
c:gem install sass
我收到以下错误:
ERROR: Could not find a valid gem 'sass' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. - connect(2) (https://rubygems.org/latest_specs.4.8.gz)
请帮帮我,
推荐答案
对于带或不带身份验证的 http/https 代理:
For http/https proxy with or without authentication:
在 cmd.exe 中运行以下命令之一
Run one of the following commands in cmd.exe
set http_proxy=http://your_proxy:your_port
set http_proxy=http://username:password@your_proxy:your_port
set https_proxy=https://your_proxy:your_port
set https_proxy=https://username:password@your_proxy:your_port
这篇关于如何为 gem 设置代理服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文