Error: spawn ENOENT: missing the sass executable

时光总嘲笑我的痴心妄想 提交于 2019-12-03 13:10:32

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.

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

sudo gem install sass

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.

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: gulp-ruby-sass@1.0.5 node_modules/gulp-ruby-sass

Then:

sudo gem install sass
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!