user4913383 user4913383 - 1 year ago 113
Ruby Question

Added ruby PATH to enviornment variables still `grunt sass` does not work

Okay first I did this.

>grunt sass
Running "sass:dist" (sass) task
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Use --force to continue.

Aborted due to warnings.


And I thought this makes sense I need to add path to ruby so I did. Then I checked version of ruby and it did return something

>ruby -v
ruby 2.2.5p319 (2016-04-26 revision 54774) [x64-mingw32]


this means I have ruby installed. Now grunt sass should work but it does not and I am getting same old message.
This one:

>grunt sass
Running "sass:dist" (sass) task
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Use --force to continue.

Aborted due to warnings.


UPDATE



I get following when I run
grunt-sass-force
:

>grunt sass --force
Running "sass:dist" (sass) task
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Used --force, continuing.
'sass' is not recognized as an internal or external command,
operable program or batch file.
Warning: Exited with error code 1 Used --force, continuing.

Done, but with warnings.

Answer Source

It appears that you need to install sass with gem install sass. Without the gem, you can't work with sass in ruby.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download