gruntjs / grunt-contrib-sass

Compile Sass to CSS.
http://gruntjs.com/
MIT License
848 stars 141 forks source link

You need to have Ruby and Sass installed and in your PATH for this taskto work #250

Open LorenaGitHub opened 5 years ago

LorenaGitHub commented 5 years ago

image image

Grunt I want to compile sass files to CSS, but it will not let me. I have installed ruby ​​and the sass module and it does not work for me.

Originally posted by @LorenaGitHub in https://github.com/gruntjs/grunt-contrib-sass/issues/229#issuecomment-471556450

zsoltjanes commented 5 years ago

What does console say after this command? ruby -v Did you try gem install sass?

amieiro commented 5 years ago

I had the same problem and I wrote a post to document it https://www.jesusamieiro.com/you-need-to-have-ruby-and-sass-installed-and-in-your-path-for-this-task-to-work/

silviuburceadev commented 4 years ago

You have 2 options, both without Ruby:

  1. Sass as dev dependency npm install --save-dev sass Invoke grunt from a npm script, since this will allow npm to add to PATH the node modules that expose binaries, like sass.
  2. Sass installed globally npm install -g sass Invoke grunt whatever you like.
jsebastianmr commented 4 years ago

I had the same Issue and I installed Ruby and sass gem, finally I reopen the git console and execute the command and it works!

carlosaraujogonzalez commented 4 years ago

I had the same issue and solve it.

Steps to install ruby: You have to install ruby from https://rubyinstaller.org/downloads/ Then you have to install rubygems from rubygems https://rubygems.org/pages/download. ( I think this step is optional)

Steps to install sass globally run npm install -g sass

image

vlrprbttst commented 4 years ago

I had the same problem and I wrote a post to document it https://www.jesusamieiro.com/you-need-to-have-ruby-and-sass-installed-and-in-your-path-for-this-task-to-work/

genius! it worked