jbreckmckye/electron-auth0-login

Issue when trying to install with npm

chasebenedict1 opened this issue · 6 comments

I am getting a conflict when trying to install to my electron project using npm. Has anyone seen this issue before and is there a way to resolve it?

image

If I update the peerDependency range to >= 7 it should work fine. In the meanwhile just use --force.

Thanks for the fast response. I will force it then, I just wanted to make sure that it wasn't going to be a security issue or something if I forced it.

Hi @jbreckmckye ! Thanks for the plugin first of all. Regarding the peerDependency update: When do you plan to do it? The current electron version is 20.

@thomasklein-toptal I forgot about this... should be able to look into it one night this week

EDIT: Probably later as I am currently without stable internet

Any update for this?

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: electron-auth0-login@2.0.3
npm ERR! Found: electron@22.1.0
npm ERR! node_modules/electron
npm ERR!   electron@"*" from @types/electron@1.6.10
npm ERR!   node_modules/@types/electron
npm ERR!     dev @types/electron@"^1.6.10" from the root project
npm ERR!   dev electron@"^22.1.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer electron@"^7.1.9" from electron-auth0-login@2.0.3
npm ERR! node_modules/electron-auth0-login
npm ERR!   electron-auth0-login@"^2.0.3" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: electron@7.3.3
npm ERR! node_modules/electron
npm ERR!   peer electron@"^7.1.9" from electron-auth0-login@2.0.3
npm ERR!   node_modules/electron-auth0-login
npm ERR!     electron-auth0-login@"^2.0.3" 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 /Users/runner/.npm/eresolve-report.txt for a full report.

@roberttolton Try version 2.0.4