Closed ivxpingg closed 6 years ago
I have installed ruby and sass.
+1
+1
+1
+1
+1
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
any ideas?
+1
+1
+1
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.
This package works nice without Ruby installed on machine: https://github.com/sindresorhus/grunt-sass
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
you need to install Sass gem install sass
or sudo gem install sass
if like me you're on Mac
thx @5ika that was the problem. Not sure where i got the wrong line to install ruby gems
+1
+1
watch this instead
mattsince87 nailed it. You have to install the Sass gem in Ruby
https://github.com/gruntjs/grunt-contrib-sass/issues/229#issuecomment-301067967
i solved it by gem install sass. i am using mac
I have the same problem, I have installed ruby and the sass module and it does not work for me.
this is my configuration file for Gruntfile.js
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.
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]
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!
You have 2 options, both without Ruby:
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.npm install -g sass
Invoke grunt whatever you like.You have 2 options, both without Ruby:
- 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.- Sass installed globally
npm install -g sass
Invoke grunt whatever you like.
This worked!
sudo gem install sass
did the trick for me on OSX 12.0.1.
You have 2 options, both without Ruby:
- 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.- Sass installed globally
npm install -g sass
Invoke grunt whatever you like.
this worked!!!
npm install -g ruby sass