[英]I deleted my node modules and package lock.json and tried reinstalling them back using npm install but i keep getting this errors
This is the update error i updated the css-loader and i am getting new error这是我更新 css-loader 的更新错误,我收到了新错误
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: app@0.1.0
npm ERR! Found: webpack@5.74.0
npm ERR! node_modules/webpack
npm ERR! dev webpack@"^5.74.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
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-plug in
npm ERR! 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.
npm ERR!
npm ERR! See C:\Users\OBIORA JUSTICE\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\OBIORA JUSTICE\AppData\Local\npm-cache\_logs\2022-09-26T09_37_37_869Z-debug-0.log
The version of css-loader
specified in your dependencies works with Webpack 4, but you're also depending on Webpack 5.您的依赖项中指定的
css-loader
版本适用于 Webpack 4,但您也依赖于 Webpack 5。
Upgrade css-loader
in your package.json
to a newer version (eg 6.7.1, the current version), then try again.将
package.json
中的css-loader
升级到更新版本(例如 6.7.1,当前版本),然后重试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.