【发布时间】:2017-03-09 08:21:21
【问题描述】:
我正在尝试在我的 package.json 中添加 lint-fix。
我的基本 lint 是 "lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs"
我确实尝试了"lint-fix": "eslint --fix --ext .js,.vue src test/unit/specs test/e2e/specs",但它抛出了我的错误,但没有修复它们。
我需要改变什么?
来自 NPM 的错误是:
217 problems (217 errors, 0 warnings)
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run-script" "lint-fix"
npm ERR! node v5.10.1
npm ERR! npm v3.8.3
npm ERR! code ELIFECYCLE
npm ERR! quasar-app@0.0.1 lint-fix: eslint --fix --ext .js,.vue src
npm ERR! Exit status 1
npm ERR! but it is caused by exit code 1 which is result of finding errors.
【问题讨论】:
-
你能分享错误信息/堆栈跟踪吗?
-
@Gyandeep - 错误列表,217 个问题(217 个错误,0 个警告)npm ERR! Windows_NT 10.0.14393 npm 错误! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run-script" " lint-fix" npm 错误!节点 v5.10.1 npm 错误! npm v3.8.3 npm 错误!代码 ELIFECYCLE npm 错误! quasar-app@0.0.1 lint-fix:
eslint --fix --ext .js,.vue srcnpm ERR!退出状态 1 npm ERR!但它是由退出代码1引起的,这是发现错误的结果。
标签: javascript npm eslint npm-scripts