4

突然之间,我的 grunt-contrib-sass 任务Could not find an option named "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.

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

4

2 回答 2

1

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

于 2017-08-28T16:26:51.457 回答
0

可能你有一个旧的 sass 引擎

尝试sudo gem install sass

于 2021-08-03T23:39:46.977 回答