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

 

I was trying to compile some Sass files using Grunt when I get this error:

$ grunt
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.

Grunt can’t found Ruby and Sass in the path.

To resolve this problem, I have to install Ruby and Sass

$ sudo apt-get update
$ sudo apt-get install ruby sass

If you want the latest Sass version in your system, execute instead this commands

$ sudo apt-get update
$ gem install sass
$ export PATH=$PATH:/usr/local/bin/

If you want that that this change becomes permanent, you have to write the last line in your ~/.bashrc file, so when you start your session this path will be loaded in your $PATH environment variable.

Un comentario en “You need to have Ruby and Sass installed and in your PATH for this task to work

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.