An error occurred after executing npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/webpack
npm ERR! dev webpack@"^3.6.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^5.0.0" from [email protected]
npm ERR! node_modules/sass-loader
npm ERR! dev sass-loader@"^13.3.2" 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 D:\software\node16.18\node_cache\eresolve-report.txt for a full report.npm ERR! A complete log of this run can be found in:
npm ERR! D:\software\node16.18\node_cache\_logs\2023-09-13T06_58_54_019Z-debug-0.log
The dependency tree cannot be parsed. You need to fix the above dependency conflicts or re-execute the npm install command.
Note: node_modules and package-lock.json need to be deleted
According to its suggestions, we execute npm install --force or npm install --legacy-peer-deps. Generally, we can restart. If not, use
npm install --legacy-peer-deps
It works in my own personal testing, but you may not happen to be able to figure it out. . . . Then find a tutorial