gem install sass
gem install sass --pre
gem uninstall sass
gem update sass
sass -v
sass -h
返回結果:node
*** CURRENT SOURCES *** https://rubygems.org/
返回結果:npm
https://rubygems.org/ removed from sources
返回結果:sass
*** CURRENT SOURCES ***
返回結果:ruby
Error fetching https://ruby.taobao.org: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: ce rtificate verify failed (https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/spe cs.4.8.gz)
分析:好像該地址是缺乏gem,更換淘寶的源地址:改成:http://gems.ruby-china.org/測試
返回結果:fetch
http://gems.ruby-china.org/ added to sources
返回結果:code
*** CURRENT SOURCES *** http://gems.ruby-china.org/
返回結果:server
Fetching: sass-3.4.22.gem (100%) Successfully installed sass-3.4.22 Parsing documentation for sass-3.4.22 Installing ri documentation for sass-3.4.22 Done installing documentation for sass after 7 seconds 1 gem installed
返回結果:rem
Sass 3.4.22 (Selective Steve)
最後在執行一遍:gem sources -a https://rubygems.org/;把默認的源在添加進去get