Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'version') #218

Open
161424 opened this issue Jul 6, 2023 · 1 comment
Open

Comments

@161424
Copy link

161424 commented Jul 6, 2023

报错内容:
PS D:\Programs\go_admin\go-admin-ui> npm run dev

[email protected] 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)

尝试过程:更换3个版本的node未解决,均是这一个错误

解决方法:在package.json里将下图代码删除
"@vue/cli-plugin-eslint": "~4.5.0"

@wenjianzhang
Copy link
Member

可以尝试yarn 进行安装

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants