2017-03-16 92 views
0

我正在尝试安装ruby'gem sass。我先运行Ruby安装,然后: gem install sass。但我得到一个错误:无法安装Ruby的sass gem

C:\ Windows \ System32下>创业板安装青菜 错误:无法找到有效的宝石 '青菜'(> = 0)在任何复位器Ÿ

任何想法那可能是什么?

感谢

Update. 
The connad: gem sources --add https://rubygems.org/ fails: 
C:\Windows\system32>gem sources --add https://rubygems.org/ 
Error fetching https://rubygems.org/: 
Errno::ETIMEDOUT: A connection attempt failed because the connected party 
did not properly respond after a period of time, or established connection failed 
because connected host has failed to respond. - connect(2) for "api.rubygems.org" 
port 443 (https://api.rubygems.org/specs.4.8.gz) 

它必须是我们用来访问Internet代理设置。是否有可能让Ruby履行这些设置?

更新2

C:\Windows\system32>gem sources --add http://rubygems.org/ 
https://rubygems.org is recommended for security over http://rubygems.org/ 

Do you want to add this insecure source? [yn] y 
Error fetching http://rubygems.org/: 
     Errno::ETIMEDOUT: A connection attempt failed because the connected part 
y did not properly respond after a period of time, or established connection fai 
led because connected host has failed to respond. - connect(2) for "api.rubygems 
.org" port 80 (http://api.rubygems.org/specs.4.8.gz) 
+0

请告诉我宝石'结果sources' – Sajin

+0

C:\ Windows \ System32下>宝石来源 ***当前来源*** – Mark

回答

1

gem sources --add https://rubygems.org/ 

,然后再试一次

+0

刚刚更新了我的问题。 – Mark

+0

然后试试这个'gem install sass --source http:// ruby​​gems.org' – Sajin

+0

顺便问一下你可以访问rubygems.org吗? 'traceroute ruby​​gems.org' – Sajin