angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

not installing firebase on angular19

Open pavansrinivas32 opened this issue 11 months ago • 6 comments

ng add @angular/fire
✔ Determining Package Manager › Using package manager: npm ✔ Searching for compatible package version › Unable to find compatible package. Using 'latest' tag. ✔ Loading package information from registry › ⚠ Package has unmet peer dependencies. Adding the package may not succeed. ✔ Confirming installation ✖ Unable to install package

npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: [email protected] npm error Found: @angular/[email protected] npm error node_modules/@angular/common npm error @angular/common@"^19.0.0" from the root project npm error npm error Could not resolve dependency: npm error peer @angular/common@"^18.0.0" from @angular/[email protected] npm error node_modules/@angular/fire npm error @angular/fire@"18.0.1" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see: npm error C:\Users\pavan\AppData\Local\npm-cache_logs\2025-01-16T15_41_21_682Z-eresolve-report.txt npm error A complete log of this run can be found in: C:\Users\pavan\AppData\Local\npm-cache_logs\2025-01-16T15_41_21_682Z-debug-0.log

Image

pavansrinivas32 avatar Jan 16 '25 15:01 pavansrinivas32

This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Jan 16 '25 15:01 google-oss-bot

I'm having same issue when trying to install it on angular 19

peciulevicius avatar Jan 16 '25 19:01 peciulevicius

Same issue trying to add to Project with Angular 19.1.1

`$ ng add @angular/fire ✔ Determining Package Manager › Using package manager: npm ✔ Searching for compatible package version › Found compatible package version: @angular/[email protected]. ✔ Loading package information from registry ✔ Confirming installation ✖ Unable to install package

npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: [email protected] npm error Found: @angular/[email protected] npm error node_modules/@angular/core npm error peer @angular/core@"19.1.1" from @angular/[email protected] npm error node_modules/@angular/animations npm error peer @angular/animations@"^19.0.0 || ^20.0.0" from @angular/[email protected] npm error node_modules/@angular/material npm error @angular/material@"^19.1.0" from the root project npm error peerOptional @angular/animations@"19.1.1" from @angular/[email protected] npm error node_modules/@angular/platform-browser npm error peer @angular/platform-browser@"19.1.1" from @angular/[email protected] npm error node_modules/@angular/forms npm error peer @angular/forms@"^19.0.0 || ^20.0.0" from @angular/[email protected] npm error node_modules/@angular/material npm error 1 more (the root project) npm error 4 more (@angular/material, ...) npm error 1 more (the root project) npm error peer @angular/core@"^19.0.0 || ^20.0.0" from @angular/[email protected] npm error node_modules/@angular/cdk npm error peer @angular/cdk@"19.1.0" from @angular/[email protected] npm error node_modules/@angular/material npm error @angular/material@"^19.1.0" from the root project npm error @angular/cdk@"^19.1.0" from the root project npm error 9 more (@angular/common, @angular/compiler, @angular/forms, ...) npm error npm error Could not resolve dependency: npm error @angular/fire@"19.0.0" from the root project npm error npm error Conflicting peer dependency: @angular/[email protected] npm error node_modules/@angular/core npm error peer @angular/core@"19.1.6" from @angular/[email protected] npm error node_modules/@angular/platform-browser-dynamic npm error @angular/platform-browser-dynamic@"^19.1.0" from the root project npm error peer @angular/platform-browser-dynamic@"^19.0.0" from @angular/[email protected] npm error node_modules/@angular/fire npm error @angular/fire@"19.0.0" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution.`

Mayocampo avatar Feb 13 '25 02:02 Mayocampo

Same issue here, some workaround to solve it ? I'm beginner --force and --legacy-peer-deps didn't work

Sourdeval avatar Mar 20 '25 20:03 Sourdeval

Same issue here:

ng add @angular/fire
✔ Determining Package Manager
  › Using package manager: npm
✔ Searching for compatible package version
  › Found compatible package version: @angular/[email protected].
✔ Loading package information from registry
✔ Confirming installation
✖ Unable to install package

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: @angular/[email protected]
npm error node_modules/@angular/core
npm error   peer @angular/core@"19.1.5" from @angular/[email protected]
npm error   node_modules/@angular/animations
npm error     peerOptional @angular/animations@"19.1.5" from @angular/[email protected]
npm error     node_modules/@angular/platform-browser
npm error       peer @angular/platform-browser@"19.1.5" from @angular/[email protected]
npm error       node_modules/@angular/forms
npm error         peer @angular/forms@">=16.0.0" from @ionic/[email protected]
npm error         node_modules/@ionic/angular
npm error         1 more (the root project)
npm error       3 more (@angular/platform-browser-dynamic, @angular/router, the root project)
npm error     @angular/animations@"^19.0.0" from the root project
npm error   peer @angular/core@"19.1.5" from @angular/[email protected]
npm error   node_modules/@angular/common
npm error     peer @angular/common@"19.1.5" from @angular/[email protected]
npm error     node_modules/@angular/forms
npm error       peer @angular/forms@">=16.0.0" from @ionic/[email protected]
npm error       node_modules/@ionic/angular
npm error         @ionic/angular@"^8.0.0" from the root project
npm error       1 more (the root project)
npm error     peer @angular/common@"19.1.5" from @angular/[email protected]
npm error     node_modules/@angular/platform-browser
npm error       peer @angular/platform-browser@"19.1.5" from @angular/[email protected]
npm error       node_modules/@angular/forms
npm error         peer @angular/forms@">=16.0.0" from @ionic/[email protected]
npm error         node_modules/@ionic/angular
npm error         1 more (the root project)
npm error       3 more (@angular/platform-browser-dynamic, @angular/router, the root project)
npm error     3 more (@angular/platform-browser-dynamic, @angular/router, the root project)
npm error   7 more (@angular/compiler, @angular/forms, ...)
npm error
npm error Could not resolve dependency:
npm error @angular/fire@"19.0.0" from the root project
npm error
npm error Conflicting peer dependency: @angular/[email protected]
npm error node_modules/@angular/core
npm error   peer @angular/core@"19.2.5" from @angular/[email protected]
npm error   node_modules/@angular/platform-browser-dynamic
npm error     @angular/platform-browser-dynamic@"^19.0.0" from the root project
npm error     peer @angular/platform-browser-dynamic@"^19.0.0" from @angular/[email protected]
npm error     node_modules/@angular/fire
npm error       @angular/fire@"19.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

ulver2812 avatar Apr 06 '25 09:04 ulver2812

I had this same issue and was able to resolve it.

Run ng update

Then, update all of the packages (these will probably just be minors/patches).

Then, run ng add @angular/fire. Hope this helps!

BaronVonPerko avatar Apr 08 '25 01:04 BaronVonPerko