Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: spawn ENOENT: missing the sass executable

I'm using bash in windows.

Getting this error when trying to run a sass compiler command via gulp. I have Ruby & Sass installed. Sass works fine when running it manually.

Error: spawn ENOENT: missing the sass executable.  Please install sass and make available on your PATH

I have included the directory of my ruby bin in the PATH var (system variables within Enviroment variables).

Anyone got any ideas?

like image 369
Aero Avatar asked Aug 12 '14 02:08

Aero


3 Answers

I had the same issue, fixed it by typing this;

sudo gem install sass
like image 180
richbray89 Avatar answered Oct 22 '22 11:10

richbray89


Your gulp-ruby-sass task is probably configured to execute SASS using Bundler (a gem dependency manager). When you don't have Bundler installed, that execution will fail with the error message you've quoted. Check your task configuration for the parameter "bundleExec" and make sure it's set to false, that way gulp-ruby-sass will run the SASS command directly.

like image 8
Franz Avatar answered Oct 22 '22 12:10

Franz


A reboot didn't fix it unfortunately. I swapped out the gulp-ruby-sass for the gulp-sass plugin and all is working fine.

It's hardly a fix but it served as a solution for me.

like image 2
Aero Avatar answered Oct 22 '22 10:10

Aero