Cli Command for npx create-supertokens-app@latest doesn't work.
Closed this issue · 6 comments
irohitb commented
npx create-supertokens-app@latest
Need to install the following packages:
create-supertokens-app@latest
Ok to proceed? (y) y
_____ _____ _
/ ___| |_ _| | |
\ `--. _ _ _ __ ___ _ __| | ___ | | _____ _ __ ___
`--. \ | | | '_ \ / _ \ '__| |/ _ \| |/ / _ \ '_ \/ __|
/\__/ / |_| | |_) | __/ | | | (_) | < __/ | | \__ \
\____/ \__,_| .__/ \___|_| \_/\___/|_|\_\___|_| |_|___/
| |
|_|
create-supertokens-app (v0.0.20) lets you quickly get started with using SuperTokens!
Choose your tech stack and the authentication method, we will create a working project that uses SuperTokens for you.
? What is your app called? my-app
? Choose a frontend framework (Visit our documentation for integration with
other frameworks): React
? Choose a backend framework (Visit our documentation for integration with other
frameworks): Nest.js
? What type of authentication do you want to use? Social Login + Email Password
✅ Finished setting up folder structure!
⛔ Setup failed!
Error: npm ERR! code ERESOLVE
npm ERR!
ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
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!
7 more (react-dom, react-router-dom, react-scripts, ...)
npm ERR!
npm ERR!
Could not resolve dependency:
npm ERR!
peer react@"^16.8.0 || ^17.0.0" from react-select@5.2.1
npm ERR!
node_modules/supertokens-auth-react/node_modules/react-select
npm ERR! react-select@"5.2.1" from supertokens-auth-react@0.27.1
npm ERR!
node_modules/supertokens-auth-react
npm ERR! supertokens-auth-react@"latest" 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/RohitB/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/RohitB/.npm/_logs/2022-11-17T13_38_42_005Z-debug.log
Error: If you think this is an issue with the tool, please report this as an issue at https://github.com/supertokens/create-supertokens-app/issues
irohitb commented
@nkshah2 16.3.0
Also, if you are investigating, this might be helpful.
- clone
https://github.com/supertokens/supertokens-auth-react
andremove *.lock
files andnode_modules
then do yarn install
or npm install
You should get the same error.
Probably with react-select
first and then react-shadow
For react-select
you can for add "react-select": "^5.2.1",
(notice ^
here)
For react-shadow
this might be helpful: Wildhoney/ReactShadow#140
nkshah2 commented
Right so ive tested with node 17, 18 and it works fine. Can you try updating the Node version and trying?
irohitb commented
irohitb commented
Okay, it works withv17.9.0
(npx create-supertokens-app@latest).
nkshah2 commented
Alright, closing this issue in that case.