i tried to install it using
npm i --save react-Paypal-express-checkout
but I get an error which says
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: client@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@"~0.14.8 || ^15.5.0" from react-paypal-express-checkout@1.0.5 npm ERR! node_modules/react-paypal-express-checkout npm ERR! react-paypal-express-checkout@"*" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command.
It'll we great if someone help me How to fix it?
Try this command-
npm install --save --legacy-peer-deps react-paypal-express-checkout
--legacy-peer-deps causes npm to completely ignore peerDependencies when building a package tree, as in npm versions 3 through 6. If a package cannot be installed because of overly strict peerDependencies that collide, it provides a way to move forward resolving the situation.
PS: Also remember to use ONLY simple letters for package/library names when you're using them with NPM commands