Sass安装
Sass基于Ruby语言开发而成,因此安装Sass前需要安装Ruby
Ruby下载地址:
https://rubyinstaller.org/downloads/
下载完成后安装时勾选Add Ruby executables to your PATH添加到环境变量
ruby -v 查看版本号
更换gem源
gem update --system //该命令请*一下
gem -v
删除替换原gem源
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
打印是否替换成功
gem sources -l
https://gems.ruby-china.com
确保只有 gems.ruby-china.com
安装Sass和Compass
gem install sass
gem install compass
sass -v
compass -v
更新Sass
gem update sass