执行npm run serve出现这种问题怎么解决,来,看这里
Module Error (from ./node_modules/eslint-loader/index.js):C:\Users\Administrator\Desktop\项目实战day1\code\vue_shop\src\router.js7:1errorExpected indentation of 2 spaces but found 4indent8:3errorNewline r
·
Module Error (from ./node_modules/eslint-loader/index.js):
C:\Users\Administrator\Desktop\项目实战day1\code\vue_shop\src\router.js
7:1 error Expected indentation of 2 spaces but found 4 indent
8:3 error Newline required at end of file but not found eol-last
✖ 2 problems (2 errors, 0 warnings)
2 errors and 0 warnings potentially fixable with the --fix
option.
解决方法:
1.在项目中找到eslintrac.js
2.注释掉标注的代码即可,亲试有效
更多推荐
已为社区贡献1条内容
所有评论(0)