1. 程式人生 > >vue中npm run dev 報錯

vue中npm run dev 報錯

1.報錯了。。。

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.在這裡插入圖片描述

2.在build/webpack.base.conf.js檔案中,註釋或者刪除掉:module->rules中有關eslint的規則。

在這裡插入圖片描述

3.如果還報錯,在main.js中檢查是否空了多行,刪除多餘的空白行,最多隻能空一行。

在這裡插入圖片描述

4.然後 nmp run dev 就能正常運行了