错误信息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.
解决方法1
找到build目录下的webpack.base.conf.js文件,注释掉其中的与有关的eslint规则即可。
module: {
rules: [
// ...(config.dev.useEslint ? [createLintingRule()] : []), // 注释掉这一行
{
test: /\.vue$/,
loader: 'vue-loader',
options: vueLoaderConfig
},
重新运行1
成功了!!!
错误信息2
A complete log of this run can be found in: C:\Users\lliya\AppData\Local\npm-cache_logs\2023-09-20T16_08_21_567Z-debug-0.log