Install sass environment - ruby installation guide

sass is developed based on the Ruby language, so you need to install Ruby before installing sass. (Note: Ruby does not need to be installed under mac!)

To install SASS under the window, you first need to install Ruby, which can be downloaded from the official website . During the installation process, please check Add Ruby executables to your PATH to add it to the system environment variable. As shown below:
write picture description here
write picture description here
The installation process is a little bit, the basic operation of Windows, so the detailed picture will not be cut.
After the installation is complete, test whether ruby ​​is successfully installed, open cmd and enter:

ruby -v

After success, there will be a corresponding version number.
Then execute this command to install sass gem install sass
successfully, we can enter the corresponding scss folder for conversion:
write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325703335&siteId=291194637