Error: spawn ENOENT: missing the sass executable
Asked Answered
G

5

8

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?

Grindery answered 12/8, 2014 at 2:43 Comment(3)
Have you tried a reboot ?Cristobalcristobalite
Which command have you run to install sass ?Cristobalcristobalite
I used 'gem install sass' to install sass. It worked fine with no errorsGrindery
T
8

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.

Tiptop answered 1/9, 2014 at 23:59 Comment(0)
C
17

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

sudo gem install sass
Cowslip answered 21/11, 2014 at 10:5 Comment(0)
T
8

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.

Tiptop answered 1/9, 2014 at 23:59 Comment(0)
G
2

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.

Grindery answered 12/8, 2014 at 12:57 Comment(0)
I
1

Instead of installing ruby-sass, I simply ran

npm i -g sass

Then replaced "sass" in gulp.js to "sass.cmd" for Windows

Isoagglutinin answered 25/2, 2022 at 10:35 Comment(0)
H
0

For my case the error was:

gulp-notify: [Error running Gulp] Error: spawn sass ENOENT

To fix it, I did the following:

In your project root:

npm install --save-dev gulp-ruby-sass

Which installed: [email protected] node_modules/gulp-ruby-sass

Then:

sudo gem install sass
Horologist answered 2/5, 2015 at 18:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.