版本號(hào)ESLint Version: 4.18.2Node Version: 8.93npm Version: 5.5.1package.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" }報(bào)錯(cuò)npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! react-blog@1.0.0 lint: `eslint **/*.js`npm ERR! Exit status 1npm 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.logdebug.log大家?guī)兔匆幌?,這個(gè)問(wèn)題我該怎么解決,使用eslint總是修正不了代碼。
eslint --fix失敗
一只萌萌小番薯
2019-03-20 18:15:51