BSA-US/dual-power-app

npm install error

Closed this issue · 1 comments

When running npm install I'm getting this error. To make it work I have to use npm install --force

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: dual-power-app@0.1.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"^17.0.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.6" from react-useportal@1.0.14
npm ERR! node_modules/react-useportal
npm ERR!   react-useportal@"^1.0.14" 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 /root/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-11-04T23_00_34_306Z-debug.log

Welcome to the project! We use Yarn. Looks like you didn't read the README.

@antfu has a brilliant package to avoid this, feel free to submit a PR, but come on friend, read the README