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

sass安装_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:22:50
Original
951 people have browsed it

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

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

http://rubyinstaller.org/downloads
Copy after login

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

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

命令

http协议的命令

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

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

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

查看镜像是否添加成功:

 gem sources -l
Copy after login

成功时会显示如下

3.安装sass

gem install sass 
Copy after login

查看sass版本号

sass -v
Copy after login

 

链接:

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template