I'm just learning. I ran into this problem when I installed the Angular 2 flash messages module in my project. The installation was not successful.
npm i angular2-flash-messages
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: front-end@0.0.0 npm ERR! Found: @angular/core@14.0.0 npm ERR! node_modules/@angular/core npm ERR! @angular/core@"^14.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/core@"^6.0.0" from angular2-flash-messages@3.0.1 npm ERR! node_modules/angular2-flash-messages npm ERR!
angular2-flash-messages@"*" 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\Никита\AppData\Local\npm-cache\eresolve-report.txt for a full report.npm ERR! A complete log of this run can be found in:
Who faced this. please tell me.