sass --watch:找不到名为" watch"

时间:2018-03-28 13:57:44

标签: npm sass

简单一个,但无法在网上找到答案!在我的Mac上全局安装sass(npm install -g sass)。

这可以按预期工作:

sass style.scss style.css

然后我尝试:

sass --watch style.scss:style.css

得到:

Could not find an option named "watch".

Usage: sass <input> [output]

    --[no-]stdin          Read the stylesheet from stdin.
    --[no-]indented       Use the indented syntax for input from stdin.
-I, --load-path=<PATH>    A path to use when resolving imports.
                      May be passed multiple times.

-s, --style=<NAME>        Output style.
                      [expanded (default), compressed]

-c, --[no-]color          Whether to emit terminal colors.
-q, --[no-]quiet          Don't print warnings.
--[no-]trace          Print full Dart stack traces for exceptions.
-h, --help                Print this usage information.
    --version             Print the version of Dart Sass.

我错过了什么?

谢谢!

2 个答案:

答案 0 :(得分:0)

最后,我放弃了lst <- as.list(unique(DF$names)) ,如上所述,并寻求sass的解决方案。

我尝试的另一个选项是使用webpack

答案 1 :(得分:-1)

I solved running this command on your terminal

echo fs.inotify.max_user_watches = 524288 | sudo tee -a /etc/sysctl.conf& amp;&amp; sudo sysctl -p

我希望得到帮助