windows下配置SASS环境
第一步,安装Ruby
基于Sass是由Ruby语言写成,因此Windows需要安装Ruby
- 到官网下载最新ruby安装程序。官网地址
- 下载完成后点击安装即可。
第二步,安装SASS
打开Ruby命令行工具,输入下面的命令。
gem install sass
由于公司网络需要走代理,所以报错了。
ERROR: Could not find a valid gem 'sass' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT:
A connection attempt failed because the connected party did not properly respon
d after a period of time, or established connection failed because connected hos
t has failed to respond. - connect(2) for "api.rubygems.org" port 443 (https://a
pi.rubygems.org/latest_specs.4.8.gz)
执行下面的命令,设置代理后重新安装。
C:\Users\Don>set http_proxy=http://10.10.10.10:8080
C:\Users\Don>gem install sass
Fetching: sass-3.4.8.gem (100%)
Successfully installed sass-3.4.8
Parsing documentation for sass-3.4.8
Installing ri documentation for sass-3.4.8
Done installing documentation for sass after 5 seconds
1 gem installed
C:\Users\Don>