2017-08-03 106 views
2

突然之间,我的咕噜声 - 贡献任务是在编译时抛出Could not find an option named "sourcemap"错误。我目前已安装sass 3.5.1并使用grunt-contrib-sass 1.0.0。任何想法可能导致这种情况?这里是我看到的输出:grunt-contrib-sass throwing“找不到一个名为”错误的选项

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。思考?

+0

看起来你已经安装了dart和dart-sass现在被称为'sass'而不是默认的预期sass? – jedierikb

+0

我在想那不是因为如果我运行'npm list',我没有在列表中看到它。我看到npm ERR!无关的:[email protected] ruby​​[email protected]和[email protected]。这些都不在全球范围内,所以我有点困惑。 –

+1

终于解决了。它看起来像一个坏的npm拉引起我的node_modules文件夹过时。 –

回答

0

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