grunt-contrib-sass icon indicating copy to clipboard operation
grunt-contrib-sass copied to clipboard

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

Open LorenaGitHub opened this issue 6 years ago • 6 comments

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

LorenaGitHub avatar Mar 12 '19 08:03 LorenaGitHub

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

zsoltjanes avatar Mar 15 '19 18:03 zsoltjanes

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/

amieiro avatar Aug 21 '19 07:08 amieiro

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.

silviuburceadev avatar May 20 '20 10:05 silviuburceadev

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!

jsebastianmr avatar Jun 27 '20 15:06 jsebastianmr

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

carlosaraujogonzalez avatar Jul 19 '20 11:07 carlosaraujogonzalez

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

vlrprbttst avatar Jul 31 '20 10:07 vlrprbttst