hello guys, i'm trying to deploy my anagular app to netlify but when i deploy i get the following error, can anyone help me out, how do i fix this
9:41:28 PM: npm WARN config [`cacache`](http://npm.im/cacache). 9:41:29 PM: npm ERR! code ERESOLVE 9:41:29 PM: npm ERR! ERESOLVE could not resolve 9:41:29 PM: npm ERR! 9:41:29 PM: npm ERR! While resolving: @angular/compiler-cli@14.2.6 9:41:29 PM: npm ERR! Found: @angular/compiler@14.0.3 9:41:29 PM: npm ERR! node_modules/@angular/compiler 9:41:29 PM: npm ERR! @angular/compiler@"^14.0.2" from the root project 9:41:29 PM: npm ERR! peer @angular/compiler@"14.0.3" from @angular/platform-browser-dynamic@14.0.3 9:41:29 PM: npm ERR! node_modules/@angular/platform-browser-dynamic 9:41:29 PM: npm ERR! @angular/platform-browser-dynamic@"^14.0.2" from the root project 9:41:29 PM: npm ERR! 9:41:29 PM: npm ERR! Could not resolve dependency: 9:41:29 PM: npm ERR! peer @angular/compiler@"14.2.6" from @angular/compiler-cli@14.2.6 9:41:29 PM: npm ERR! node_modules/@angular/compiler-cli 9:41:29 PM: npm ERR! @angular/compiler-cli@"^14.0.2" from the root project 9:41:29 PM: npm ERR! peer @angular/compiler-cli@"^14.0.0" from @angular-devkit/build-angular@14.0.3 9:41:29 PM: npm ERR! node_modules/@angular-devkit/build-angular 9:41:29 PM: npm ERR! dev @angular-devkit/build-angular@"~14.0.3" from the root project 9:41:29 PM: npm ERR! 2 more (@angular/localize, @ngtools/webpack) 9:41:29 PM: npm ERR! 9:41:29 PM: npm ERR! Conflicting peer dependency: @angular/compiler@14.2.6 9:41:29 PM: npm ERR! node_modules/@angular/compiler 9:41:29 PM: npm ERR! peer @angular/compiler@"14.2.6" from @angular/compiler-cli@14.2.6 9:41:29 PM: npm ERR! node_modules/@angular/compiler-cli 9:41:29 PM: npm ERR! @angular/compiler-cli@"^14.0.2" from the root project 9:41:29 PM: npm ERR! peer @angular/compiler-cli@"^14.0.0" from @angular-devkit/build-angular@14.0.3 9:41:29 PM: npm ERR! node_modules/@angular-devkit/build-angular 9:41:29 PM: npm ERR! dev @angular-devkit/build-angular@"~14.0.3" from the root project 9:41:29 PM: npm ERR! 2 more (@angular/localize, @ngtools/webpack) 9:41:29 PM: npm ERR! 9:41:29 PM: npm ERR! Fix the upstream dependency conflict, or retry 9:41:29 PM: npm ERR! this command with --force, or --legacy-peer-deps 9:41:29 PM: npm ERR! to accept an incorrect (and potentially broken) dependency resolution. 9:41:29 PM: npm ERR! 9:41:29 PM: npm ERR! See /opt/buildhome/.npm/eresolve-report.txt for a full report. 9:41:29 PM: npm ERR! A complete log of this run can be found in: 9:41:29 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-10-15T20_41_28_030Z-debug-0.log 9:41:29 PM: Error during NPM install 9:41:29 PM: Build was terminated: Build script returned non-zero exit code: 1 9:41:29 PM: Creating deploy upload records 9:41:29 PM: Failing build: Failed to build site
Top comments (0)