Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm ERR! ERESOLVE unable to resolve dependency tree #165

Open
SimonSiefke opened this issue Jun 29, 2023 · 1 comment
Open

npm ERR! ERESOLVE unable to resolve dependency tree #165

SimonSiefke opened this issue Jun 29, 2023 · 1 comment

Comments

@SimonSiefke
Copy link

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

@shuowu-okta
Copy link
Contributor

@SimonSiefke Thanks for reporting the issue! While we are looking into this issue can you try suggestion here as a workaround npm ERR! this command with --force or --legacy-peer-deps.

Internal Ref: OKTA-627445

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants