Home  >  Article  >  Web Front-end  >  sass-install ruby ​​- donghua-li's blog - CSDN blog

sass-install ruby ​​- donghua-li's blog - CSDN blog

一个新手
一个新手Original
2017-09-20 09:36:431244browse


  1. Install ruby ​​
    Build a sass environment. Since the sass environment depends on ruby, you need to install ruby ​​
    ruby download address
    Download It is best not to use the latest version, and download it according to the computer system. If the operating system is 64-bit, download the 64-bit version. If it is a 32-bit operating system, download (86) or not.
    During installation, you will be prompted to change the installation path. There are three options below the page. Select the second option
    as shown
    sass-install ruby ​​- donghua-lis blog - CSDN blog

  2. Install sass
    After installing ruby, there will be a file in the start interface.
    Start Command Prompt with Ruby. Open it as an administrator.
    Then enter the command gem install sass. This is to install sass, but sometimes an error will occur. Because it is blocked and cannot be installed, some large websites provide some mirrors. Here is an introduction to using mirrors to install

  3. Taobao RubyGems mirror installation sass
    First remove the default source file input command

gem sources --remove https://rubygems.org/

Then add a new source file

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

Note that the protocol here uses http instead of https protocol
Then enter it in the command gem sources -l
When only gems.ruby-china.org is displayed, enter again from the command line

gem install sass

Maybe this mirror is not successful, so change to a new source Files, find new source files yourself! ! !

  1. Check the installation
    Input

sass -v

If the installed sass version is displayed, then the installation is successful

The above is the detailed content of sass-install ruby ​​- donghua-li's blog - CSDN blog. For more information, please follow other related articles on the PHP Chinese website!

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