P
Prisma3mo ago
! Mannu

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?
No description
1 Reply
Prisma AI Help
Prisma AI Help3mo ago
You opted for speed from this bot. Let's conjure up an answer right now! It looks like you're having trouble running 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:
Error: Cannot find module '/.../node_modules/@prisma/cli-init/dist/index.js'
Error: Cannot find module '/.../node_modules/@prisma/cli-init/dist/index.js'
or
Cannot find package '@inquirer/prompts'
Cannot find package '@inquirer/prompts'
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:
npm install prisma@6.5.0 --save-dev
npx prisma init
npm install prisma@6.5.0 --save-dev
npx prisma init
If you still encounter issues, try deleting the Prisma cache directory (on macOS):
rm -rf /var/folders/*/*/*/T/@prisma
rm -rf /var/folders/*/*/*/T/@prisma
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!

Did you find this page helpful?