Reputation: 59
I cannot install Sass to my machine although I had downloaded ruby and printed on cmd :
cd C:/ruby22
then:
gem install sass
but I get as result:
'gem' is not recognized as an internal command, operable program or batch file
how to install it please?
Upvotes: 4
Views: 11664
Reputation: 330
You can install Sass on Windows by downloading the package for your operating system from GitHub select latest release extract the downloaded zip file
Now note download the extracted zip file path. For example D:\MyUserName\dart-sass
That's all—there are no external dependencies and nothing else you need to install.
run sass --version
to be sure it installed correctly.
When you install Sass on the command line, you'll be able to run the sass executable to compile .sass and .scss files to .css files. For example:
sass --watch input.scss output.css
Once it's all set up, Sass Basics.
how i am converting .scss to .css
i have created a windows batch file in my project/content/scss folder(where all my scss files are) with below commands.
cd..
(When you need to go one folder up, use the "cd.." command.)sass --watch scss\:scss\
(You can also watch individual files or
directories with the --watch
flag.)saved it as
watch scss.bat
now whenever i am working on my sass file i run the "watch scss.bat"
the above command execute and watch my all my .scss files and update .css file for the same:)
Upvotes: 3
Reputation: 1
Step 1: https://rubyinstaller.org/ using CMD [gem install sass]
Step 2: http://compass-style.org/install/ using CMD
[gem update --system] [gem install compass]
for more details https://github.com/iz-syed/base_path/blob/master/README.md
Upvotes: 0
Reputation: 1
This is for Windows
ruby -v
command.gem install sass
.sass -v
and it will give you a version.For Mac
Just run gem install sass
as ruby is preinstalled on Mac.
Upvotes: 0
Reputation: 49054
gem install sass
Possible related to your issue: https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file
Upvotes: 0