Fix the upstream dependency conflict installing NPM packages
It looks like it's a problem with peer dependencies in the latest version of npm (v7) which is still a beta version.
Try with npm install --legacy-peer-deps
. For detailed information check the blog post npm v7 Series - Beta Release! And: SemVer-Major Changes in npm v7.
There are two ways:
use
npm install --legacy-peer-deps
to install, and if this doesn't work usethe force method. Add --force next to npm install:
npm install --force
Use --legacy-peer-deps
after npm install
. For example, if you want to install Radium, use:
npm install --legacy-peer-deps --save radium
You can follow these commands
First type:
npm config set legacy-peer-deps true
Then type:
npx create-react-app my-app