echarts-for-react icon indicating copy to clipboard operation
echarts-for-react copied to clipboard

Error installing dependencies

Open ZeRego opened this issue 2 years ago • 1 comments

Trying to npm install after cloning the repo.

Getting the following error:

❯ npm install
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/jest
npm ERR!   dev jest@"^26.6.3" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer jest@"^24.0.0" from [email protected]
npm ERR! node_modules/jest-electron
npm ERR!   dev jest-electron@"^0.1.11" 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/.../.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/.../.npm/_logs/2022-11-24T15_00_27_238Z-debug-0.log

Updated jest-electron to latest version without success "jest-electron": "^0.1.12",

I was able to install dependencies after changing the jest packages from v26 to v24.

"@types/jest": "^24.0.0",
"jest": "^24.0.0",
"ts-jest": "^24.0.0",

ZeRego avatar Nov 24 '22 15:11 ZeRego

helpful to reduce the version of jest

seabean1999 avatar May 15 '23 12:05 seabean1999