Reputation: 41
npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: @angular/[email protected] npm ERR! node_modules/@angular/common npm ERR! @angular/common@"^14.2.3" from the root project npm ERR! peer @angular/common@"14.2.0" from @angular/[email protected] npm ERR! node_modules/@angular/forms npm ERR! @angular/forms@"^14.2.3" from the root project npm ERR! 4 more (@angular/platform-browser, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! @angular/common@"^14.2.3" from the root project npm ERR! npm ERR! Conflicting peer dependency: @angular/[email protected] npm ERR! node_modules/@angular/core npm ERR! peer @angular/core@"14.2.3" from @angular/[email protected] npm ERR! node_modules/@angular/common npm ERR! @angular/common@"^14.2.3" 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.
Upvotes: 1
Views: 1198
Reputation: 41
Ok I found the answer through angular communities, you just need to run this command on the terminal
ng update @angular/cli @angular/core
Upvotes: 3