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

upstream dependency conflict while installing angular2-jwt package using angular-cli #713

Closed
bharukarupesh11 opened this issue Dec 26, 2021 · 1 comment

Comments

@bharukarupesh11
Copy link

I'm trying to install angular2-jwt package using angular-cli and got the below error,

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: {project_name}@0.0.0
npm ERR! Found: @angular/core@12.2.15
npm ERR! node_modules/@angular/core
npm ERR! @angular/core@"~12.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/core@"^2.0.0||^4.0.0" from angular2-jwt@0.2.3
npm ERR! node_modules/angular2-jwt
npm ERR! angular2-jwt@"*" 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! See C:\Users\DELL-PC\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\DELL-PC\AppData\Local\npm-cache_logs\2021-12-26T10_35_26_149Z-debug.log

Any quick fix is really appreciable..!

@bharukarupesh11
Copy link
Author

I'm using Angular V12 and this package has support till Angular V9. So, for Angular 10+ we need to use https://www.npmjs.com/package/@auth0/angular-jwt package

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

1 participant