centos8 下如何安装 sass 和 compass

作者

安装sass 和 compass 需要使用 gem 命令, gem 是ruby 的包管理工具。安装好ruby后,命令gem就可以使用了。

yum install ruby ruby-devel

gem install sass
gem install compass

查看版本

#sass -v
Ruby Sass 3.7.4

# compass -v
Compass 1.0.3 (Polaris)
Copyright (c) 2008-2020 Chris Eppstein
Released under the MIT License.
Compass is charityware.
Please make a tax deductable donation for a worthy cause: http://umdf.org/compass

sass安装信息

gem install sass

Ruby Sass has reached end-of-life and should no longer be used.

* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
  primary implementation: https://sass-lang.com/install

* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
  sassc gem: https://github.com/sass/sassc-ruby#readme

* For more details, please refer to the Sass blog:
  https://sass-lang.com/blog/posts/7828841

Successfully installed sass-3.7.4
1 gem installed

comass安装信息

gem install compass
Fetching: chunky_png-1.3.12.gem (100%)
Successfully installed chunky_png-1.3.12
Fetching: sass-3.4.25.gem (100%)
Successfully installed sass-3.4.25
Fetching: compass-import-once-1.0.5.gem (100%)
Successfully installed compass-import-once-1.0.5
Fetching: multi_json-1.15.0.gem (100%)
Successfully installed multi_json-1.15.0
Fetching: compass-core-1.0.3.gem (100%)
Successfully installed compass-core-1.0.3
Fetching: compass-1.0.3.gem (100%)
    Compass is charityware. If you love it, please donate on our behalf at http://umdf.org/compass Thanks!
Successfully installed compass-1.0.3
6 gems installed

回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注