TerminalQuest / terminalquest

The TerminalQuest game client
MIT License
57 stars 11 forks source link

Package dependency issue #11

Open fafrd opened 11 months ago

fafrd commented 11 months ago

npm install doesn't work:

/tmp/terminalquest-main % npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @electron/remote@2.0.9
npm ERR! Found: electron@11.5.0
npm ERR! node_modules/electron
npm ERR!   electron@"^11.5.0" from the root project
npm ERR!   peer electron@"*" from @jest-runner/electron@3.0.0
npm ERR!   node_modules/@jest-runner/electron
npm ERR!     dev @jest-runner/electron@"^3.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer electron@">= 13.0.0" from @electron/remote@2.0.9
npm ERR! node_modules/@electron/remote
npm ERR!   @electron/remote@"^2.0.9" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: electron@27.0.4
npm ERR! node_modules/electron
npm ERR!   peer electron@">= 13.0.0" from @electron/remote@2.0.9
npm ERR!   node_modules/@electron/remote
npm ERR!     @electron/remote@"^2.0.9" 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/kian/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/kian/.npm/_logs/2023-11-10T22_50_33_289Z-debug-0.log

I'm able to work around this with npm install --legacy-peer-deps though

N0TRIA commented 11 months ago

I'm having the same trouble and I don't know how get over it properly.