错误:产卵ENOENT:缺少sass可执行文件 [英] Error: spawn ENOENT: missing the sass executable

查看:170
本文介绍了错误:产卵ENOENT:缺少sass可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在windows中使用bash。

尝试通过gulp运行sass编译器命令时出现此错误。
我有Ruby& Sass已安装。
Sass在手动运行时工作正常。

 错误:spawn ENOENT:缺少sass可执行文件。请安装sass并在您的PATH中提供

我在PATH中包含了我的ruby bin目录var(Enviroment变量中的系统变量)。



任何人有任何想法?

你的gulp-ruby-sass任务可能被配置为使用Bundler(一个gem依赖管理器)来执行SASS。当您没有安装Bundler时,该执行将失败并显示您引用的错误消息。检查参数bundleExec的任务配置,并确保它设置为false,这样gulp-ruby-sass将直接运行SASS命令。


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?

解决方案

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.

这篇关于错误:产卵ENOENT:缺少sass可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆