How to install sass on windows

I cannot install Sass on my machine, although I downloaded ruby โ€‹โ€‹and typed to cmd:

cd C:/ruby22

      

then:

gem install sass 

      

but i get the result:

'gem' is not recognized as an internal command, operable program or batch file

      

how to install it?

+3


source to share


2 answers


  • Install ruby โ€‹โ€‹see https://github.com/oneclick/rubyinstaller/wiki
  • Open a command prompt, click Start, click Run, type cmd, and then click OK.
  • Execute gem install sass



Possibly related to your problem: https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file

0


source


This is for Windows

  • The first step - download the ruby , install it, and then add them to your executable path.
  • Now go to the folder where ruby โ€‹โ€‹was installed and check if it was installed using the command ruby -v

    .
  • Then open the folder where you installed ruby โ€‹โ€‹and install sass with gem install sass

    .
  • What is it! You are good! If you still have doubts, run sass -v

    it and it will provide you with a version.


For Mac

Just run gem install sass

as Ruby is pre-installed on Mac.

0


source







All Articles