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