grunt-contrib-sass 抛出“找不到名为的选项”错误

Jas*_*ord 5 sass gruntjs grunt-contrib-sass

突然间,我的 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.
Run Code Online (Sandbox Code Playgroud)

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

Jas*_*ord 1

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