Now I have this error when compiling help me please

Using cordova-fetch for cordova-android
Failed to fetch platform cordova-android
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
CordovaError: Error: Command failed with exit code 1: npm install cordova-android --save-dev
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @angular/fire@5.4.2
npm WARN Found: @angular/common@12.1.5
npm WARN node_modules/@angular/common
npm WARN peer @angular/common@β€œ12.1.5” from @angular/forms@12.1.5
npm WARN node_modules/@angular/forms
npm WARN peer @angular/forms@β€œ>=8.2.7” from @ionic/angular@5.7.0
npm WARN node_modules/@ionic/angular
npm WARN 1 more (the root project)
npm WARN 4 more (@angular/platform-browser, …)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @angular/common@β€œ>=6.0.0 <9 || ^9.0.0-0” from @angular/fire@5.4.2
npm WARN node_modules/@angular/fire
npm WARN @angular/fire@β€œ5.4.2” from angularfire2@5.4.2
npm WARN node_modules/angularfire2
npm WARN
npm WARN Conflicting peer dependency: @angular/common@9.1.13
npm WARN node_modules/@angular/common
npm WARN peer @angular/common@β€œ>=6.0.0 <9 || ^9.0.0-0” from @angular/fire@5.4.2
npm WARN node_modules/@angular/fire
npm WARN @angular/fire@β€œ5.4.2” from angularfire2@5.4.2
npm WARN node_modules/angularfire2
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @angular/fire@5.4.2
npm WARN Found: @angular/core@12.1.5
npm WARN node_modules/@angular/core
npm WARN peer @angular/core@β€œ12.1.5” from @angular/common@12.1.5
npm WARN node_modules/@angular/common
npm WARN peer @angular/common@β€œ12.1.5” from @angular/forms@12.1.5
npm WARN node_modules/@angular/forms
npm WARN 4 more (@angular/platform-browser, …)
npm WARN 6 more (@angular/forms, @angular/platform-browser, …)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @angular/core@β€œ>=6.0.0 <9 || ^9.0.0-0” from @angular/fire@5.4.2
npm WARN node_modules/@angular/fire
npm WARN @angular/fire@β€œ5.4.2” from angularfire2@5.4.2
npm WARN node_modules/angularfire2
npm WARN
npm WARN Conflicting peer dependency: @angular/core@9.1.13
npm WARN node_modules/@angular/core
npm WARN peer @angular/core@β€œ>=6.0.0 <9 || ^9.0.0-0” from @angular/fire@5.4.2
npm WARN node_modules/@angular/fire
npm WARN @angular/fire@β€œ5.4.2” from angularfire2@5.4.2
npm WARN node_modules/angularfire2
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @angular/fire@5.4.2
npm WARN Found: @angular/platform-browser@12.1.5
npm WARN node_modules/@angular/platform-browser
npm WARN peer @angular/platform-browser@β€œ12.1.5” from @angular/forms@12.1.5
npm WARN node_modules/@angular/forms
npm WARN peer @angular/forms@β€œ>=8.2.7” from @ionic/angular@5.7.0
npm WARN node_modules/@ionic/angular
npm WARN 1 more (the root project)
npm WARN 3 more (@angular/platform-browser-dynamic, @angular/router, the root project)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @angular/platform-browser@β€œ>=6.0.0 <9 || ^9.0.0-0” from @angular/fire@5.4.2
npm WARN node_modules/@angular/fire
npm WARN @angular/fire@β€œ5.4.2” from angularfire2@5.4.2
npm WARN node_modules/angularfire2
npm WARN
npm WARN Conflicting peer dependency: @angular/platform-browser@9.1.13
npm WARN node_modules/@angular/platform-browser
npm WARN peer @angular/platform-browser@β€œ>=6.0.0 <9 || ^9.0.0-0” from @angular/fire@5.4.2
npm WARN node_modules/@angular/fire
npm WARN @angular/fire@β€œ5.4.2” from angularfire2@5.4.2
npm WARN node_modules/angularfire2
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @angular/fire@5.4.2
npm WARN Found: @angular/platform-browser-dynamic@12.1.5
npm WARN node_modules/@angular/platform-browser-dynamic
npm WARN @angular/platform-browser-dynamic@β€œ~12.1.1” from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @angular/platform-browser-dynamic@β€œ>=6.0.0 <9 || ^9.0.0-0” from @angular/fire@5.4.2
npm WARN node_modules/@angular/fire
npm WARN @angular/fire@β€œ5.4.2” from angularfire2@5.4.2
npm WARN node_modules/angularfire2
npm WARN
npm WARN Conflicting peer dependency: @angular/platform-browser-dynamic@9.1.13
npm WARN node_modules/@angular/platform-browser-dynamic
npm WARN peer @angular/platform-browser-dynamic@β€œ>=6.0.0 <9 || ^9.0.0-0” from @angular/fire@5.4.2
npm WARN node_modules/@angular/fire
npm WARN @angular/fire@β€œ5.4.2” from angularfire2@5.4.2
npm WARN node_modules/angularfire2
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @hackages/ngxerrors@8.0.0
npm ERR! Found: @angular/forms@12.1.5
npm ERR! node_modules/@angular/forms
npm ERR! peer @angular/forms@β€œ>=8.2.7” from @ionic/angular@5.7.0
npm ERR! node_modules/@ionic/angular
npm ERR! @ionic/angular@β€œ^5.5.2” from the root project
npm ERR! @angular/forms@β€œ~12.1.1” from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/forms@β€œ^8.0.0” from @hackages/ngxerrors@8.0.0
npm ERR! node_modules/@hackages/ngxerrors
npm ERR! @hackages/ngxerrors@β€œ^8.0.0” from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/forms@8.2.14
npm ERR! node_modules/@angular/forms
npm ERR! peer @angular/forms@β€œ^8.0.0” from @hackages/ngxerrors@8.0.0
npm ERR! node_modules/@hackages/ngxerrors
npm ERR! @hackages/ngxerrors@β€œ^8.0.0” 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\MarcelaZenteno\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\MarcelaZenteno\AppData\Local\npm-cache_logs\2024-02-06T15_42_21_527Z-debug-0.log
[ERROR] An error occurred while running subprocess cordova.

    cordova.cmd platform add android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.
2 Likes