[英]Error: No files matching the pattern "'./src/views/{tokens,atoms,molecules,organisms}/**/*.scss'" were found
I am getting error while running stylelint command on windows enviornment :在Windows 环境中运行stylelint命令时出现错误:
command : "lint-styles": "stylelint ./src/views/{tokens,atoms,molecules,organisms}/**/*.scss --fix",
命令:
"lint-styles": "stylelint ./src/views/{tokens,atoms,molecules,organisms}/**/*.scss --fix",
Getting error:获取错误:
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)
While no error on Mac .虽然在 Mac 上没有错误。 What should I change in it ?
我应该改变什么?
你需要在你的 glob 周围加上引号:
"lint-styles": "stylelint \"./src/views/{tokens,atoms,molecules,organisms}/**/*.scss\" --fix"
So issue was with the folder names, I changed tokens,atoms,molecules,organisms
to Tokens,Atoms,Molecules,Organisms
.所以问题在于文件夹名称,我将
tokens,atoms,molecules,organisms
更改为Tokens,Atoms,Molecules,Organisms
。
Because I have folders names starting with capitals but in command I was using first letter small.因为我有以大写开头的文件夹名称,但在命令中我使用第一个字母小。 Though it was working on mac as it is.
虽然它是在 mac 上运行的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.