116 Star 1.2K Fork 880

java110 / HC物联网平台_老版本

 / 详情

npm install总是报错, vue-admin-template有冲突,怎么结局?

Backlog
Opened this issue  
2023-12-06 08:39

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: vue-admin-template@4.2.1
npm ERR! Found: webpack@5.89.0
npm ERR! node_modules/webpack
npm ERR! peer webpack@"^5.1.0" from copy-webpack-plugin@7.0.0
npm ERR! node_modules/copy-webpack-plugin
npm ERR! dev copy-webpack-plugin@"^7.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev html-webpack-plugin@"3.2.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: webpack@4.47.0
npm ERR! node_modules/webpack
npm ERR! peer webpack@"^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0" from html-webpack-plugin@3.2.0
npm ERR! node_modules/html-webpack-plugin
npm ERR! dev html-webpack-plugin@"3.2.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
这是报错的具体内容,换了几个版本,都是这种错误,请问怎么解决?你们安装的时候没有这个问题吗

Comments (1)

jzone created任务

我也是这个问题,哥,你解决了吗

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
Java
1
https://gitee.com/java110/MicroCommunityThings.git
git@gitee.com:java110/MicroCommunityThings.git
java110
MicroCommunityThings
HC物联网平台_老版本

Search

53164aa7 5694891 3bd8fe86 5694891