简体   繁体   English

无法安装Ruby的Sass gem

[英]Cannot install Ruby's sass gem

I am trying to install ruby' gem sass. 我正在尝试安装ruby'gem sass。 I have run Ruby installation first and: gem install sass. 我先运行了Ruby安装,然后运行了:gem install sass。 But I am getting an error: 但我收到一个错误:

C:\\Windows\\system32>gem install sass ERROR: Could not find a valid gem 'sass' (>= 0) in any repositor y C:\\ Windows \\ system32> gem install sass错误:在任何存储库 y 中都找不到有效的gem'sass'(> = 0)

Any idea what that might be? 任何想法可能是什么?

Thanks 谢谢

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)

It must be proxy setting that we use to access Internet. 它必须是用于访问Internet的代理设置。 Is it possible to make Ruby to honor these settings? 是否可以使Ruby遵守这些设置?

Update 2. 更新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)

Do

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

and try again 然后再试一次

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM