having issue deploying angular app on netlify

Discussão em 'Angular' iniciado por Tosin Ayoola, Março 20, 2025.

  1. Tosin Ayoola

    Tosin Ayoola Guest

    i'm having issues deploying my angular app to netlify, the app is working perfectly on my local host but when i deploy i get the following err can anyone help out

    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!
    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)





    enter image description here [​IMG]

    Continue reading...

Compartilhe esta Página