PhpStorm使用Stylelint遇node_modules/meow语法错误求助
PhpStorm检查CSS文件时出现
SyntaxError: Unexpected token '&&='报错 环境信息
- PhpStorm 2023.3
- Node.js v20.11.0
- npm 10.3.0
package.json依赖配置
"devDependencies": { "eslint": "^8.56.0", "grunt": "^1.6.1", "grunt-contrib-jshint": "^3.2.0", "grunt-contrib-nodeunit": "^5.0.0", "grunt-contrib-uglify": "^5.2.2", "stylelint": "^16.2.0", "stylelint-config-recess-order": "^4.4.0", "stylelint-config-recommended": "^14.0.0", "stylelint-order": "^6.0.4" }, "dependencies": { "eslint-config-xbsoftware": "^5.0.0-alpha.3", "grunt-banner": "^0.6.0", "grunt-cli": "^1.4.3", "grunt-contrib-cssmin": "^5.0.0", "grunt-css": "^0.4.1", "grunt-json-minify": "^1.1.0", "grunt-minjson": "^0.4.0", "grunt-remove-comments": "^0.1.6", "grunt-remove-logging": "^0.2.0", "js-yaml": "^4.1.0", "stylelint-config-standard": "^36.0.0", "uglify-js": "^3.17.4" }
报错信息
node_modules/meow/build/index.js:29
description &&= help ?\n ${description}\n:\n${description};
^^^
SyntaxError: Unexpected token '&&='
at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)Process finished with exit code 1
请问有人遇到过类似问题并找到解决方法吗?感谢!
内容的提问来源于stack exchange,提问作者Michael Schrading
相关产品推荐
相关产品推荐

