vue项目启动报错-http://eslint.org/

当打开项目,输入npm run dev的时候,会出现这样的报错

Errors:
  4  http://eslint.org/docs/rules/no-tabs
  4  http://eslint.org/docs/rules/indent
  1  http://eslint.org/docs/rules/eol-last
  1  http://eslint.org/docs/rules/semi
  1  http://eslint.org/docs/rules/no-multiple-empty-lines


  ✘  http://eslint.org/docs/rules/semi    Extra semicolon
  src\router\index.js:8:16
  Vue.use(Router);
                  ^

  ✘  http://eslint.org/docs/rules/quotes  Strings must use singlequote
  src\router\index.js:13:13
        path: "/", component: Main
               ^


✘ 2 problems (2 errors, 0 warnings)


Errors:
  1  http://eslint.org/docs/rules/quotes
  1  http://eslint.org/docs/rules/semi

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.

运行vue项目的时候终端报如下报错

解决办法
打开config里面的index.js
找到
useEslint: true,

图片.png

把useEslint: true,改成useEslint:false,

重新输入
npm run dev
运行程序

在浏览器里面输入
http://localhost:8083
ok,可以在网页中看到我们的项目了


原文作者:祈澈姑娘 技术博客:https://www.jianshu.com/u/05f416aefbe1
90后前端妹子,爱编程,爱运营,文艺与代码齐飞,魅力与智慧共存的程序媛一枚。
坚持总结工作中遇到的技术问题,坚持记录工作中所所思所见,对于博客上面有不会的问题,欢迎加入编程微刊qq群:260352626

猜你喜欢

转载自blog.csdn.net/qq_36538012/article/details/89634558