npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR!

2023-05-16

在这里插入图片描述

PS D:\BaiduNetdiskDownload\汽车销售管理系统\front\front> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: script-ext-html-webpack-plugin@2.0.1
npm ERR! Found: html-webpack-plugin@4.0.0-alpha
npm ERR! node_modules/html-webpack-plugin
npm ERR! node_modules/script-ext-html-webpack-plugin
npm ERR!   dev script-ext-html-webpack-plugin@"2.0.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: html-webpack-plugin@3.2.0
npm ERR! node_modules/html-webpack-plugin
npm ERR!   peer html-webpack-plugin@"^3.0.0" from script-ext-html-webpack-plugin@2.0.1
npm ERR!   node_modules/script-ext-html-webpack-plugin
npm ERR!     dev script-ext-html-webpack-plugin@"2.0.1" 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.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\fwl\AppData\Local\npm-cache\_logs\2023-03-05T20_49_57_818Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\fwl\AppData\Local\npm-cache\_logs\2023-03-05T20_49_57_818Z-debug-0.log

解决方法:后面加上 --legacy-peer-deps

在这里插入图片描述

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! 的相关文章

随机推荐