saleor / saleor-app-payment-stripe

https://saleor.io/
Other
14 stars 162 forks source link

Can't install due to dependency conflict #176

Closed gskorokhod closed 9 months ago

gskorokhod commented 9 months ago

Hi! I'm trying to run npm install for the latest release of the app, but I'm getting the following error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: saleor-app-payment-stripe@0.2.1
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   react@"18.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.9.0 || ^17.0.0" from @testing-library/react-hooks@8.0.1
npm ERR! node_modules/@testing-library/react-hooks
npm ERR!   dev @testing-library/react-hooks@"8.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/mayday/.npm/_logs/2023-12-03T14_59_22_246Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/mayday/.npm/_logs/2023-12-03T14_59_22_246Z-debug-0.log
gskorokhod commented 9 months ago

Never mind, that was my fault for not running it correctly. I was using npm install instead of pnpm install