Sass “咕噜咕噜”的意思;找不到名为“的选项”;错误

Sass “咕噜咕噜”的意思;找不到名为“的选项”;错误,sass,gruntjs,grunt-contrib-sass,Sass,Gruntjs,Grunt Contrib Sass,突然,我的grunt contrib sass任务在生成时抛出找不到名为“sourcemap”的选项错误。我目前安装了sass 3.5.1,并使用grunt contrib sass 1.0.0。你知道这是什么原因吗?以下是我看到的输出: Could not find an option named "sourcemap". Usage: dart-sass <input> -s, --style Output style. [

突然,我的grunt contrib sass任务在生成时抛出
找不到名为“sourcemap”的选项
错误。我目前安装了sass 3.5.1,并使用grunt contrib sass 1.0.0。你知道这是什么原因吗?以下是我看到的输出:

Could not find an option named "sourcemap".
Usage: dart-sass <input>
-s, --style         Output style.
                    [expanded (default)]
-c, --[no-]color    Whether to emit terminal colors.
    --[no-]trace    Print full Dart stack traces for exceptions.
-h, --help          Print this usage information.
    --version       Print the version of Dart Sass.
Warning: Exited with error code 64 Used --force, continuing.
Done, but with warnings.
Process terminated with code 0.
找不到名为“sourcemap”的选项。
用法:飞镖
-s、 --样式输出样式。
[扩展(默认)]
-c、 -->[no-]颜色是否发射端子颜色。
--[no-]跟踪打印异常的完整省道堆栈跟踪。
-h、 --帮助打印此使用信息。
--版本打印Dart Sass的版本。
警告:退出并使用错误代码64--强制,继续。
完成,但有警告。
进程已终止,代码为0。

而且,这并不是在编译CSS。想法?

我通过删除node_modules文件夹并让Visual Studio重新填充此文件夹解决了这个问题。

看起来您已经安装了dart,dart sass现在是被调用的
sass
而不是默认的预期sass?我想这不是问题,因为如果我运行
npm list
我在列表中看不到它。我确实看到了npm的错误!无关的:ruby@0.6.1红宝石-sass@0.0.3及sass@1.0.0-beta.2。这些都不是全局的,所以我有点困惑。终于解决了。看起来是npm拉错误导致我的node_modules文件夹过期。