Error: No files matching the pattern "'./src/views/{tokens,atoms,molecules,organisms}/**/*.scss'" were found

Error: No files matching the pattern "'./src/views/{tokens,atoms,molecules,organisms}/**/*.scss'" were found

windows 环境 :

上执行 运行 stylelint 命令时出现错误

命令: "lint-styles": "stylelint ./src/views/{tokens,atoms,molecules,organisms}/**/*.scss --fix",

获取错误:

Error: No files matching the pattern "'./src/views/{tokens,atoms,molecules,organisms}/**/*.scss'" were found.
at globby.then (C:\workplace\Ulta\web-common\node_modules\stylelint\lib\standalone.js:212:12)
at process._tickCallback (internal/process/next_tick.js:68:7)

而 Mac 上没有错误。我应该改变什么?

你需要quotes around your glob:

"lint-styles": "stylelint \"./src/views/{tokens,atoms,molecules,organisms}/**/*.scss\" --fix"

文件夹名称有问题,我将 tokens,atoms,molecules,organisms 更改为 Tokens,Atoms,Molecules,Organisms

因为我的文件夹名称以 capitals 开头,但在命令中我使用的是第一个字母 small。虽然它正在 mac 按原样工作。