Help with initializing
I've just created a new nextjs project and I ran the following commands:
npm install -D prisma
npx prisma init
but for some reason I'm not able to init it.
can someone please help with it?

1 Reply
You opted for speed from this bot. Let's conjure up an answer right now!
It looks like you're having trouble running
GitHub Issue 1
GitHub Issue 2
Node.js compatibility Let me know if you need more help! ✅ Great, thanks for letting us know that this solved your question!
npx prisma init
in your new Next.js project. Based on recent reports, there is a known issue with Prisma versions 6.8.x (and possibly some earlier/later versions) where running npx prisma init
can fail with errors like:
or
This issue is being discussed by multiple users and contributors. Some users have found that downgrading Prisma to version 6.5.0 resolves the problem:
If you still encounter issues, try deleting the Prisma cache directory (on macOS):
Then try running npx prisma init
again. If you're on Linux, clear the /tmp/@prisma
directory.
Summary of steps:
1. Uninstall current Prisma version:npm uninstall prisma
2. Install a stable version:npm install prisma@6.5.0 --save-dev
3. Clear Prisma cache (if needed).
4. Run:npx prisma init
If you continue to have issues, please check for permission errors in your npm cache and ensure you are not using an unsupported Node.js version (use Node.js 18, 20, or 22) see details.
References:GitHub Issue 1
GitHub Issue 2
Node.js compatibility Let me know if you need more help! ✅ Great, thanks for letting us know that this solved your question!