报错内容:
PS D:\Programs\go_admin\go-admin-ui> npm run dev
go-admin@2.0.9 dev
vue-cli-service serve
ERROR TypeError: Cannot read properties of undefined (reading 'version')
TypeError: Cannot read properties of undefined (reading 'version')
at module.exports (D:\Programs\go_admin\go-admin-ui\node_modules\@vue\cli-plugin-eslint\index.js:20:27)
at D:\Programs\go_admin\go-admin-ui\node_modules\@vue\cli-service\lib\Service.js:78:7
at Array.forEach ()
at Service.init (D:\Programs\go_admin\go-admin-ui\node_modules\@vue\cli-service\lib\Service.js:76:18)
at Service.run (D:\Programs\go_admin\go-admin-ui\node_modules\@vue\cli-service\lib\Service.js:215:10)
at Object. (D:\Programs\go_admin\go-admin-ui\node_modules\@vue\cli-service\bin\vue-cli-service.js:36:9)
at Module._compile (node:internal/modules/cjs/loader:1198:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
at Module.load (node:internal/modules/cjs/loader:1076:32)
at Function.Module._load (node:internal/modules/cjs/loader:911:12)
报错内容: PS D:\Programs\go_admin\go-admin-ui> npm run dev
ERROR TypeError: Cannot read properties of undefined (reading 'version') TypeError: Cannot read properties of undefined (reading 'version') at module.exports (D:\Programs\go_admin\go-admin-ui\node_modules\@vue\cli-plugin-eslint\index.js:20:27) at D:\Programs\go_admin\go-admin-ui\node_modules\@vue\cli-service\lib\Service.js:78:7 at Array.forEach ()
at Service.init (D:\Programs\go_admin\go-admin-ui\node_modules\@vue\cli-service\lib\Service.js:76:18)
at Service.run (D:\Programs\go_admin\go-admin-ui\node_modules\@vue\cli-service\lib\Service.js:215:10)
at Object. (D:\Programs\go_admin\go-admin-ui\node_modules\@vue\cli-service\bin\vue-cli-service.js:36:9)
at Module._compile (node:internal/modules/cjs/loader:1198:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
at Module.load (node:internal/modules/cjs/loader:1076:32)
at Function.Module._load (node:internal/modules/cjs/loader:911:12)
尝试过程:更换3个版本的node未解决,均是这一个错误
解决方法:在package.json里将下图代码删除 "@vue/cli-plugin-eslint": "~4.5.0"