thinhvo0108 / react-paypal-express-checkout

React component that renders Paypal's express check out button
MIT License
107 stars 71 forks source link

Npm unable to resolve dependency tree #59

Open Pradeep-Dhatarwal opened 3 years ago

Pradeep-Dhatarwal commented 3 years ago

npm i react-paypal-express-checkout

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 with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/pradeepdhatarwal/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/pradeepdhatarwal/.npm/_logs/2021-05-12T10_32_17_437Z-debug.log

Here's my package.json:

  "dependencies": {
    "@testing-library/jest-dom": "^5.12.0",
    "@testing-library/react": "^11.2.6",
    "@testing-library/user-event": "^12.8.3",
    "axios": "^0.21.1",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-router-dom": "^5.2.0",
    "react-scripts": "4.0.3",
    "web-vitals": "^1.1.2"
  }

node-version : v16.1.0 npm-version: 7.11.2

bedamatta05 commented 3 years ago

Try npm i react-paypal-express-checkout -f

xuan123h commented 2 years ago

Cảm ơn anh vì câu lệnh này em đã fixed error được rồi ạ