samples-js-angular
samples-js-angular copied to clipboard
npm ERR! ERESOLVE unable to resolve dependency tree
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: [email protected]
npm ERR! Found: [email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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
@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