问题阐述
在VUE项目中遇到以下报错: Cannot read property ‘version’ of undefined
TypeError: Cannot read property ‘version’ of undefined
at module.exports (E:\Mirror\Projects\webStorm\captcha\node_modules@vue\cli-plugin-eslint\index.js:21:2
如图:

解决方式
- 首先控制台卸载eslint :
npm uninstall eslint --save
javascript
- 卸载之后再去package.json文件里删除"@vue/cli-plugin-eslint": “~4.5.0”,这句代码就OK了
那么以后记得创建项目避开ESlint





