Article Introduction: because SASS relies on the ruby environment, make sure Ruby is installed before installing SASS. The pilot website downloads a ruby. |
Ruby Installation
Because SASS relies on the ruby environment, make sure Ruby is installed before installing SASS. Download a ruby from the pilot website
When installing, check the Add Ruby executables to your path option to add environment variables, otherwise you will be prompted to not find the Ruby environment when you use the build software
Sass Installation
If you like to slack off, or if your company has more network restrictions, please look at the last paragraph directly.
After installing Ruby, in the Start menu, locate the ruby that we just installed, open the start Command Prompt with Ruby
And then enter directly into the command line
Gem Install Sass
Press ENTER to confirm, wait a period of time will prompt you sass installs successfully.
If you want to install a beta version of, you can enter at the command line
Gem Install sass--pre
You can also install from sass git repository, git's command behavior
git clone git://github.com/nex3/sass.git cd sass Rake Install
If you try to fail with the above method, it means either your network wall or your network signal is bad. You can try a local installation, but it's a bit complicated. There's a big secret here, that's koala. This compiler tool has built-in sass, so if you have koala installed, you don't need to install sass, so be aware that Ruby still has to be installed. See compilation tools for Koala.