简体   繁体   English

我删除了我的节点模块和 package lock.json 并尝试使用 npm install 重新安装它们,但我不断收到此错误

[英]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.

相关问题 如果我保留 package-lock.json 文件,则无法安装 npm 包,npm ERR! 安装类型 npm 后出现错误 -4048 - Fail to install npm packages if i keep the package-lock.json file, npm ERR! errno -4048 after type npm install 如果我更改节点版本并安装 npm ,package-lock.json 中的 package 版本是否更改? - If I change the node version and do npm install, does the package versions in package-lock.json change? 即使我的 package.json 和 node_modules 文件夹中有它们,我也得到了未定义的包 - I'm getting undefined packages even though I have them in my package.json and node_modules folder 我收到 npm i 和 node_modules 错误 - I am getting errors with npm i, and node_modules 我可以在不删除我的 package-lock.json 文件的情况下解决 npm install 错误吗? - Can I resolve an npm install error without deleting my package-lock.json file? 超出最大调用堆栈大小; 删除 node_modules 和 package-lock.json 并运行“npm i”无效 - Maximum call stack size exceeded; removing node_modules and package-lock.json and running 'npm i' did not work 我应该依靠package.json还是在节点模块上保留版本控制? - Should I rely on package.json or keep version control on my node modules? 在 npm Install 上,我收到“未处理的拒绝错误:完整性检查失败”,但是当我删除 package-lock.json 时,错误消失了 - On npm Install I am getting "Unhandled rejection Error: Integrity check failed", but when I delete package-lock.json the error disappears 使用`npm i`(npm v6.3.0,节点v8.9.2)时不会生成package-lock.json - package-lock.json is not generated when using `npm i` (npm v6.3.0, node v8.9.2) 在 Angular 中创建新项目时出现错误,删除 node-modules 和 package-lock.json 后,出现运行时错误 - Getting Errors while creating new Project in Angular , after removing node-modules and package-lock.json, getting run time errors
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM