'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?
Solution 1:[1]
I had the same issue, fixed it by typing this;
sudo gem install sass
Solution 2:[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.
Solution 3:[3]
Instead of installing ruby-sass, I simply ran
npm i -g sass
Then replaced "sass" in gulp.js to "sass.cmd" for Windows
Solution 4:[4]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Richard Oliver Bray |
| Solution 2 | Aero |
| Solution 3 | Aman Goel |
| Solution 4 | Eduardo Chongkan |
