Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

@angular/cli v20. NPM cannot resolve @angular/fire #3667

Open
@MarksASP95

Description

@MarksASP95

I'm trying to install @angular/fire to my Angular 20 project, but NPM won't resolve the package.

package.json

{  "name": "my-project",  "version": "0.0.0",  "scripts": {    "ng": "ng",    "start": "ng serve",    "build": "ng build",    "watch": "ng build --watch --configuration development",    "test": "ng test"  },  "prettier": {    "overrides": [      {        "files": "*.html",        "options": {          "parser": "angular"        }      }    ]  },  "private": true,  "dependencies": {    "@angular/common": "^20.1.0",    "@angular/compiler": "^20.1.0",    "@angular/core": "^20.1.0",    "@angular/forms": "^20.1.0",    "@angular/platform-browser": "^20.1.0",    "@angular/router": "^20.1.0",    "@ng-select/ng-select": "^20.1.2",    "firebase": "^12.1.0",    "rxjs": "~7.8.0",    "tslib": "^2.3.0",    "zone.js": "~0.15.0"  },  "devDependencies": {    "@angular/build": "^20.1.5",    "@angular/cli": "^20.1.5",    "@angular/compiler-cli": "^20.1.0",    "@types/jasmine": "~5.1.0",    "jasmine-core": "~5.8.0",    "karma": "~6.4.0",    "karma-chrome-launcher": "~3.2.0",    "karma-coverage": "~2.2.0",    "karma-jasmine": "~5.1.0",    "karma-jasmine-html-reporter": "~2.1.0",    "typescript": "~5.8.2"  }}

I'm using theadd command
ng add @angular/fire

Output

√ Determining Package Manager  › Using package manager: npm√ Searching for compatible package version  › Found compatible package version: @angular/fire@20.0.1.√ Loading package information from registry√ Confirming installation× Unable to install packagenpm error code ERESOLVEnpm error ERESOLVE could not resolvenpm errornpm error While resolving: my-project@0.0.0npm error Found: @angular/core@20.1.6npm error node_modules/@angular/corenpm error   peerOptional @angular/core@"^20.0.0" from @angular/build@20.1.5npm error   node_modules/@angular/buildnpm error     dev @angular/build@"^20.1.5" from the root projectnpm error   peer @angular/core@"20.1.6" from @angular/common@20.1.6npm error   node_modules/@angular/commonnpm error     peer @angular/common@"20.1.6" from @angular/forms@20.1.6npm error     node_modules/@angular/formsnpm error       peer @angular/forms@"^20.0.0" from @ng-select/ng-select@20.1.2npm error       node_modules/@ng-select/ng-selectnpm error         @ng-select/ng-select@"^20.1.2" from the root projectnpm error       1 more (the root project)npm error     peer @angular/common@"20.1.6" from @angular/platform-browser@20.1.6npm error     node_modules/@angular/platform-browsernpm error       peerOptional @angular/platform-browser@"^20.0.0" from @angular/build@20.1.5npm error       node_modules/@angular/buildnpm error         dev @angular/build@"^20.1.5" from the root projectnpm error       3 more (@angular/forms, @angular/router, the root project)npm error     3 more (@angular/router, @ng-select/ng-select, the root project)npm error   5 more (@angular/forms, @angular/platform-browser, ...)npm errornpm error Could not resolve dependency:npm error @angular/fire@"20.0.1" from the root projectnpm errornpm error Conflicting peer dependency: @angular/core@20.1.7npm error node_modules/@angular/corenpm error   peer @angular/core@"20.1.7" from @angular/platform-browser-dynamic@20.1.7npm error   node_modules/@angular/platform-browser-dynamicnpm error     peer @angular/platform-browser-dynamic@"^20.0.0" from @angular/fire@20.0.1npm error     node_modules/@angular/firenpm error       @angular/fire@"20.0.1" from the root projectnpm errornpm error Fix the upstream dependency conflict, or retrynpm error this command with --force or --legacy-peer-depsnpm error to accept an incorrect (and potentially broken) dependency resolution.npm errornpm errornpm error For a full report see:npm error C:\Users\Marco\AppData\Local\npm-cache\_logs\2025-08-15T19_42_39_683Z-eresolve-report.txtnpm error A complete log of this run can be found in: C:\Users\Marco\AppData\Local\npm-cache\_logs\2025-08-15T19_42_39_683Z-debug-0.log

Angular version

Angular CLI: 20.1.5                                     Node: 22.18.0                                           Package Manager: npm 10.9.3                             OS: win32 x64                                                                                                   Angular: 20.1.6                                         ... common, compiler, compiler-cli, core, forms         ... platform-browser, router                                                                                    Package                      Version                    ------------------------------------------------------  @angular-devkit/architect    0.2001.5                   @angular-devkit/core         20.1.5                     @angular-devkit/schematics   20.1.5                     @angular/build               20.1.5                     @angular/cli                 20.1.5                     @schematics/angular          20.1.5                     rxjs                         7.8.2                      typescript                   5.8.3                      zone.js                      0.15.1

Same thing happens if I install directly with npm

npm i @angular/fire

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp