gpt4 book ai didi

npm - 萨斯--watch : could not find option named "watch"

转载 作者:行者123 更新时间:2023-12-04 14:23:36 25 4
gpt4 key购买 nike

很简单,但是在网上找不到任何答案!在我的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.

我想念什么?

谢谢!!

最佳答案

最后,我放弃了上面尝试过的sass,转而使用webpack寻求解决方案。

我尝试过的另一个选择是使用node-sass

关于npm - 萨斯--watch : could not find option named "watch",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49536528/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com