版本号
ESLint Version: 4.18.2
Node Version: 8.93
npm Version: 5.5.1
package.json部分
scripts": {
"dev": "webpack-dev-server --open --history-api-fallback",
"build": "webpack -p",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint **/*.js",
"lint-html": "eslint **/*.js -f html -o ./reports/lint-results.html",
"lint-fix": "eslint --fix **/*.js"
}
报错
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-blog@1.0.0 lint: `eslint **/*.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-blog@1.0.0 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\yanyue\AppData\Roaming\npm-cache\_logs\2018-04-03T09_10_39_948Z-debug.log
debug.log
大家帮忙看一下,这个问题我该怎么解决,使用eslint总是修正不了代码。
PIPIONE
相关分类