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

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR!_第1张图片

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

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR!_第2张图片

你可能感兴趣的:(报错笔记,npm,javascript,前端)