2017-03-16 90 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