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,可以在网页中看到我们的项目了





 

  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值