安装Sass和Compass
来源:互联网 发布:用户行为数据挖掘 编辑:程序博客网 时间:2024/04/29 20:27
安装Sass和Compass
安装Ruby
sass基于Ruby语言开发而成,因此安装sass前需要安装Ruby。(注:mac下自带Ruby无需在安装Ruby!)
window下安装SASS首先需要安装Ruby,先从官网下载Ruby并安装。安装过程中请注意勾选Add Ruby executables to your PATH添加到系统环境变量。如下图:
安装完成后需测试安装有没有成功,运行CMD输入以下命令:
ruby -v//如安装成功会打印ruby 2.2.2p95 (2015-04-13 revision 50295) [i386-mingw32]如上已经安装成功。但因为国内网络的问题导致gem源间歇性中断因此我们需要更换gem源。(使用淘宝的gem源https://ruby.taobao.org/)如下://1.删除原gem源gem sources --remove https://rubygems.org///2.添加国内淘宝源gem sources -a https://ruby.taobao.org///3.打印是否替换成功gem sources -l//4.更换成功后打印如下*** CURRENT SOURCES ***https://ruby.taobao.org/
安装Sass Compass
Ruby自带一个叫做RubyGems的系统,用来安装基于Ruby的软件。我们可以使用这个系统来 轻松地安装Sass和Compass。要安装最新版本的Sass和Compass,你需要输入下面的命令:
//安装如下(如mac安装遇到权限问题需加 sudo gem install sass)
gem install sassgem install compass
在每一个安装过程中,你都会看到如下输出:
Fetching: sass-3.x.x.gem (100%)Successfully installed sass-3.x.xParsing documentation for sass-3.x.xInstalling ri documentation for sass-3.x.xDone installing documentation for sass after 6 secon1 gem installed
安装完成之后,你应该通过运行下面的命令来确认应用已经正确地安装到了电脑中:
sass -vSass 3.x.x (Selective Steve)compass -vCompass 1.x.x (Polaris)Copyright (c) 2008-2015 Chris EppsteinReleased under the MIT License.Compass is charityware.Please make a tax deductable donation for a worthy cause: http://umdf.org/compass
Sass相关命令
如下sass常用更新、查看版本、sass命令帮助等命令:
//更新sassgem update sass//查看sass版本sass -v//查看sass帮助sass -h
引自sass中文官网
0 0
- 安装Sass和Compass
- Sass和Compass安装
- Sass&Compass安装和使用
- sass和compass的安装
- sass和compass的安装
- Sass和Compass的安装
- windows下安装sass和compass
- sass-compass 安装
- ruby/sass/compass安装
- sass/compass安装
- Sass和Compass入门
- 认识Sass和Compass
- Sass和compass 安装 和配合grunt实时显示
- sass和compass学习笔记2(compass)
- PHPStorm 安装 SASS、SCSS + Compass
- PHPStorm 安装SASS/SCSS、Compass
- window 安装 sass compass 记录
- 创建compass和sass工程
- Choose the best route
- android中更新UI的方法
- 曾经的笔记迁移__150717
- Toolbar:上位的小三
- 数据结构—进制间转换
- 安装Sass和Compass
- HDU1556——Color the ball(区间更新OR树状数组)
- C++手稿:std::string
- [VS debug] C++ new做的工作
- Spring中如何向 Bean注入系统属性或环境变量
- linux新建用户和用户组
- 铅
- Android ADB server didn't ACK * failed to start daemon * 简单有效的解决方案
- 类的内存偏移