angular / angular/angularfire

not installing firebase on angular19

未关闭
#3,612 6 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
7.8k
派生
2.2k
平均合并
22 小时 28 分钟
30 天内合并 PR
6

描述

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: example@0.0.0
npm error Found: @angular/common@19.1.1
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/fire@18.0.1
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](https://github.com/user-attachments/assets/926b93eb-6cda-4108-8729-2ab854ffb5d5)

贡献指南

打开贡献指南

调研方向

在 Angular 19 项目中运行 `ng add @angular/fire`,并检查针对 `@angular/fire` 和 `@angular/common` 报告的 peer dependency 范围。完成的标准是该命令能够在没有 ERESOLVE 的情况下安装兼容的软件包;内容没有指定任何 repository 文件或测试,因此请定位控制兼容性的 dependency 声明。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, firebase, typescript
领域
developer-experience, frontend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。