Skip to content

npm install error (dependency conflicts for @angular/common) v6.1.1 #174

@BenLayet

Description

@BenLayet

Hi,
I cloned the project to try and upgrade it to the new firebase v7 api (not compat) but when I run npm install with the current version I get an error.

versions

  • FirebaseUI-Angular: 6.1.1
  • npm : 8.6.0
  • node: v16.14.2
  • git: 2.35.1

steps

  1. git clone https://github.com/RaphaelJenni/FirebaseUI-Angular.git
  2. cd FirebaseUI-Angular.
  3. npm install => ERROR
npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @angular/[email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"13.0.0" from the root project
npm ERR!   peer @angular/common@"13.0.0" from @angular/[email protected]
npm ERR!   node_modules/@angular/forms
npm ERR!     @angular/forms@"13.0.0" from the root project
npm ERR!   3 more (@angular/platform-browser, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^12.0.0" from @angular/[email protected]
npm ERR! node_modules/@angular/fire
npm ERR!   @angular/fire@"^7.1.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR!   peer @angular/common@"^12.0.0" from @angular/[email protected]
npm ERR!   node_modules/@angular/fire
npm ERR!     @angular/fire@"^7.1.1" 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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions