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 task to work. #229

Closed ivxpingg closed 6 years ago

ivxpingg commented 8 years ago

image

ivxpingg commented 8 years ago

I have installed ruby and sass.

guvenckardas commented 8 years ago

+1

jmanlapid commented 8 years ago

+1

badoubadou commented 8 years ago

+1

jaspersorrio commented 8 years ago

+1

yinix commented 8 years ago

+1

brainstrategist commented 8 years ago

Same issue when the command was prompt by a php script from a git webhook. It's weird because it's working well when the command is running through the cli

juanvillegas commented 8 years ago

any ideas?

FloFzks commented 7 years ago

+1

atoner595 commented 7 years ago

+1

vinimdocarmo commented 7 years ago

+1

juanvillegas commented 7 years ago

I finally fixed mine by resolving a node conflict. Basically, I had two versions of node, one I installed manually and the other installed using brew. So maybe you should check that.

aszmyd commented 7 years ago

This package works nice without Ruby installed on machine: https://github.com/sindresorhus/grunt-sass

5ika commented 7 years ago

grunt-sass documentation is not very clear. To avoid the need of Ruby, you can try this:

npm uninstall --save grunt-contrib-sass
npm install --save node-sass grunt-sass
uixmat commented 7 years ago

you need to install Sass gem install sass or sudo gem install sass if like me you're on Mac

honsa commented 7 years ago

thx @5ika that was the problem. Not sure where i got the wrong line to install ruby gems

Nikodermus commented 6 years ago

+1

sdoasddd0920 commented 6 years ago

+1

prakyathacharya commented 6 years ago

watch this instead

https://www.youtube.com/watch?v=VSQf10i0_7c

strider72 commented 6 years ago

mattsince87 nailed it. You have to install the Sass gem in Ruby

https://github.com/gruntjs/grunt-contrib-sass/issues/229#issuecomment-301067967

juanapu commented 6 years ago

i solved it by gem install sass. i am using mac

LorenaGitHub commented 5 years ago

image

I have the same problem, I have installed ruby ​​and the sass module and it does not work for me.

LorenaGitHub commented 5 years ago

image this is my configuration file for Gruntfile.js

Therealskythe commented 5 years ago

To everyone saying to install the Ruby SASS gem: Ruby SASS is deprecated (since March 2019) and users are told to 'migrate to another implementation'.

Problem is, even after installing node-sass globally the error message posted above still appears. And nobody seems to know a way out.

vuon9 commented 5 years ago

If you still need the deprecated version of sass on ruby, you can still use it:

Find your gem home on mac, it will be like this:

/usr/local/lib/ruby/gems/[ruby-version]

Install sass ruby by gem install sass then add to your .bash_profile (or .bashrc or .zshrc)

export GEM_HOME="/usr/local/lib/ruby/gems/[ruby-version]"
export PATH="$GEM_HOME/bin:$PATH"

then run source ~/.[your_bash_file]

jowe1 commented 4 years ago

What I needed for it to work was: sudo apt install ruby-sass

Running Ubuntu 18.04. I don't know why this isn't mentioned in ANY tutorial / help / guide, but I really needed to install the ruby-sass package: jwetzel@uldren:~/p/Lightningsoul.com$ sass --version Sass 3.4.23 (Selective Steve)

Just check if you have installed sass, if not it will say: jwetzel@uldren:~/p/Lightningsoul.com$ sass --version

Command 'sass' not found, but can be installed with:

sudo apt install ruby-sass

Hope this helps!

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.
torweb-net commented 3 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.

This worked!

odil-io commented 3 years ago

sudo gem install sass did the trick for me on OSX 12.0.1.

gary-quinn commented 2 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.

this worked!!!

jelly823 commented 2 years ago

npm install -g ruby sass

image