我怎样才能设置一个代理服务器的宝石? [英] How can I set a proxy server for gem?
本文介绍了我怎样才能设置一个代理服务器的宝石?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法通过命令提示符安装SASS。
I am unable to install SASS through command prompt.
我试过以下步骤
I tried below steps
c:\gem install sass
我收到以下错误:
I am getting below error:
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
这篇关于我怎样才能设置一个代理服务器的宝石?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文