I ran "npm i --save @descope/react-sdk" in the ter...
# ask-a-descoper
n
I ran "npm i --save @descope/react-sdk" in the terminal and got the error below. I tried to use --force without success. What should i do? pm i --save @descope/react-sdk added 1 package, changed 10 packages, and audited 1508 packages in 16s 235 packages are looking for funding run
npm fund
for details 48 vulnerabilities (42 moderate, 6 high) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run
npm audit
for details.
s
@few-holiday-24516 @great-diamond-35515 can you help here ?
🙏 1
r
Hi @numerous-continent-44612, From your output text it doesn’t seems like you get an error. Can you elaborate please? Do you get additional output? When you try to run things doesn’t work?
n
thanks for the reply Tal!
Im sorry, i sent you the wrong response: npm i --save @descope/react-sdk npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: react-google-login@5.2.2 npm ERR! Found: react@18.2.0 npm ERR! node_modules/react npm ERR! peer react@"^18.0.0" from @testing-library/react@13.4.0 npm ERR! node_modules/@testing-library/react npm ERR! @testing-library/react@"^13.4.0" from the root project npm ERR! peer react@"0.14 || 15 || 16 || 17 || 18" from html-react-parser@4.0.0 npm ERR! node_modules/html-react-parser npm ERR! html-react-parser@"^4.0.0" from the root project npm ERR! 14 more (its-fine, react-dom, react-konva, react-markdown, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16 || ^17" from react-google-login@5.2.2 npm ERR! node_modules/react-google-login npm ERR! react-google-login@"^5.2.2" from the root project npm ERR! npm ERR! Conflicting peer dependency: react@17.0.2 npm ERR! node_modules/react npm ERR! peer react@"^16 || ^17" from react-google-login@5.2.2 npm ERR! node_modules/react-google-login npm ERR! react-google-login@"^5.2.2" 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! npm ERR! For a full report see: npm ERR! /Users/maorfarid/.npm/_logs/2023-07-04T11_35_38_939Z-eresolve-report.txt npm ERR! A complete log of this run can be found in: npm ERR! /Users/maorfarid/.npm/_logs/2023-07-04T11_35_38_939Z-debug-0.log
f
@numerous-continent-44612 are you installing the latest version? When I’m trying to do so I get the following output
Copy code
npm i --save @descope/react-sdk

added 186 packages, and audited 187 packages in 14s

70 packages are looking for funding
  run `npm fund` for details

6 moderate severity vulnerabilities

To address all issues, run:
  npm audit fix

Run `npm audit` for details.
n
Im running this line:
Copy code
npm i --save @descope/react-sdk
should i run a different one? a newer version?
lmk what I sould write and I will do that 🙂
This message contains interactive elements.
f
From the error it seems like the problem is on another library
Copy code
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16 || ^17" from react-google-login@5.2.2
n
Isn't it on your side? I.e. in the communication between Descope and Google?
I dont import any Google libraries
BTW can someone maybe hop on a real quick Zoom so we'll be able to resolve it more efficiently?
? 🙂
g
sure, sending you a zoom
n
Yes! thanks Asaf!