#ferdinand-react

1 messages · Page 1 of 1 (latest)

icy wing
ruby cobalt
#

Thank you @icy wing !

#

hi @icy wing i got error while install npm install @stripe/react-stripe-js @stripe/stripe-js

i got this

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @stripe/react-stripe-js@1.8.1
npm ERR! Found: react@18.1.0
npm ERR! node_modules/react
npm ERR! dev react@"18.1.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.0
npm ERR! node_modules/@testing-library/react-hooks
npm ERR! dev @testing-library/react-hooks@"^8.0.0" 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/ferdinandgushcloud/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ferdinandgushcloud/.npm/_logs/2022-06-02T07_04_05_789Z-debug-0.log
ferdinandgushcloud@ruby cobalts-MacBook-Pro react-stripe-js % npm start
npm ERR! Missing script: "start"
npm ERR!
npm ERR! Did you mean one of these?
npm ERR! npm star # Mark your favorite packages
npm ERR! npm stars # View packages marked as favorites
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ferdinandgushcloud/.npm/_logs/2022-06-02T07_04_13_490Z-debug-0.log

icy wing
#

can you share your package.json dependencies?

ruby cobalt
#

oh i don't change the package.json. it same as the repository. while i'm trying to run this commend npm install @stripe/react-stripe-js @stripe/stripe-js

above error display

icy wing
#

i'm referring to your application package.json

ruby cobalt
barren ingot
#

sorry, looking now!

#

looks like you just downloaded our library and ran npm start on it? That's not really how it works, it's a library that you add to your own existing project