mickasmt / next-saas-stripe-starter

Open-source SaaS Starter with User Roles & Admin Panel. Built using Next.js 14, Prisma, Neon, Auth.js v5, Resend, React Email, Shadcn/ui, Stripe, Server Actions.
https://next-saas-stripe-starter.vercel.app
MIT License
1.95k stars 354 forks source link

Installation error #9

Closed sundios closed 9 months ago

sundios commented 9 months ago

I tried

npx create-next-app my-saas-project --example "https://github.com/mickasmt/next-saas-stripe-starter"

and keep getting the follownig error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: saas-starter@0.1.0
npm ERR! Found: prettier@3.2.5
npm ERR! node_modules/prettier
npm ERR!   dev prettier@"^3.2.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer prettier@"^2.0.0" from pretty-quick@3.3.1
npm ERR! node_modules/pretty-quick
npm ERR!   dev pretty-quick@"^3.1.3" 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! 

I tried --force or --legacy-peer-deps but still no luck

mickasmt commented 9 months ago

Sorry for the late and thank for the report. I upgrade Auth.js to v5 and update all dependencies. I just tested the command line and everything works for me. Can you try again and give me feedback please? I'm closing the issue but feel free to comment if you still have the problem.