Prisma init

npx prisma init Error: Cannot find module '/var/folders/sy/cvxrc_pj4tgdnvnyvrws1n6c0000gn/T/@prisma/cli-init@latest-1747852200000/node_modules/@prisma/cli-init/dist/index.js'
16 Replies
Prisma AI Help
You decided to hold for human wisdom. We'll chime in soon! Meanwhile, #ask-ai is there if you need a quick second opinion.
jonfanz
jonfanz2w ago
thanks for the report! If you try npx prisma@latest init does it work?
Ankit-kashyap
Ankit-kashyapOP2w ago
yes.. it gives the same error
Ankit-kashyap
Ankit-kashyapOP2w ago
@Jon Harrell
No description
jonfanz
jonfanz2w ago
hm ok. Which version of prisma are you using in your project?
Ankit-kashyap
Ankit-kashyapOP2w ago
6.8.2 Today in my interview... while setting up prisma... this error came and can't even setup it Maybe my bad luck
jonfanz
jonfanz2w ago
Do you get an error message if you use npm prisma init?
Ankit-kashyap
Ankit-kashyapOP2w ago
prisma being dev depedency
jonfanz
jonfanz2w ago
please copy/paste if possible
Ankit-kashyap
Ankit-kashyapOP2w ago
No description
jonfanz
jonfanz2w ago
Is this similar to your issue? https://github.com/prisma/prisma/issues/27234
GitHub
npx prisma init command is not working · Issue #27234 · prisma/pr...
Bug description npx prisma init Error: Cannot find module '/var/folders/sy/cvxrc_pj4tgdnvnyvrws1n6c0000gn/T/@prisma/cli-init@latest-1747852200000/node_modules/@prisma/cli-init/dist/index.js&#39...
Ankit-kashyap
Ankit-kashyapOP2w ago
yes
Ankit-kashyap
Ankit-kashyapOP2w ago
GitHub
prisma init not working · Issue #27202 · prisma/prisma
Bug description I am following the doc for integrating the prisma with nextjs. when I run this command pnpm dlx prisma init --db --output ./generated/prisma Here is the error log Error: Cannot find...
jonfanz
jonfanz2w ago
please add a 👍 reaction to that issue and see if the workarounds suggested work!
Ankit-kashyap
Ankit-kashyapOP2w ago
let me try solved @Jon Harrell
jonfanz
jonfanz2w ago
fantastic

Did you find this page helpful?