Home  >  Article  >  Web Front-end  >  sass安装_html/css_WEB-ITnose

sass安装_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:22:50890browse

sass 基于Ruby,首先需要安装Ruby。当然也有node-sass,那是另外一种使用方式了。如果能FQ的,就不用看了,主要写给翻不了墙的人用。

1.安装Ruby,ruby下载地址:

http://rubyinstaller.org/downloads

 

2.添加镜像,淘宝镜像我试了N次都没有成功,最后用另外一个镜像试成功了。https://gems.ruby-china.org/ 。

淘宝镜像的地址:gem sources -a https://ruby.taobao.org/ ,大家可以试一下,如果能成功最好了。

命令

http协议的命令

gem sources --add https://gems.ruby-china.org/

如果不成功试一下http协议的地址:

gem sources --add http://gems.ruby-china.org/

查看镜像是否添加成功:

 gem sources -l

成功时会显示如下

3.安装sass

gem install sass 

查看sass版本号

sass -v

 

链接:

https://rubygems.org/gems/sass/versions/3.4.21

 https://github.com/ruby-china/rubygems-mirror/wiki

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn