Skip to content

npm ERR! ERESOLVE unable to resolve dependency tree #165

@SimonSiefke

Description

@SimonSiefke

When trying to set up the project, it fails at npm install.

Here is what I tried:

git clone https://github.com/okta/samples-js-angular.git &&
cd samples-js-angular/custom-login &&
npm install

Output:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: custom-login@0.0.0
npm ERR! Found: rxjs@7.4.0
npm ERR! node_modules/rxjs
npm ERR!   rxjs@"~7.4.0" from the root project
npm ERR!   peer rxjs@"^6.5.3 || ^7.4.0" from @angular/common@14.2.12
npm ERR!   node_modules/@angular/common
npm ERR!     @angular/common@"~14.2.0" from the root project
npm ERR!     peer @angular/common@">= 6.0.0" from @giomamaladze/ng2-semantic-ui@1.0.1
npm ERR!     node_modules/@giomamaladze/ng2-semantic-ui
npm ERR!       @giomamaladze/ng2-semantic-ui@"^1.0.1" from the root project
npm ERR!     2 more (@angular/forms, @angular/platform-browser)
npm ERR!   2 more (@angular/core, @angular/forms)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer rxjs@"^6.0.0" from @giomamaladze/ng2-semantic-ui@1.0.1
npm ERR! node_modules/@giomamaladze/ng2-semantic-ui
npm ERR!   @giomamaladze/ng2-semantic-ui@"^1.0.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! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /home/simon/.npm/_logs/2023-06-29T12_34_09_717Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /home/simon/.npm/_logs/2023-06-29T12_34_09_717Z-debug-0.log

Expected behaviour

No error in npm install.

Actual behaviour

npm install fails with an error: ERESOLVE unable to resolve dependency tree

Additional information

Node Version: 20.3.1
Npm Version: 9.6.1
OS: Ubuntu 23.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions