Home > Article > Web Front-end > sass-install ruby - donghua-li's blog - CSDN blog
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
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
Taobao RubyGems mirror installation sass
First remove the default source file input command
Then add a new source file
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
Maybe this mirror is not successful, so change to a new source Files, find new source files yourself! ! !
Check the installation
Input
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!