Error generating schema

So whenever I try to generate my schema (Using prisma)
npx @better-auth/cli@latest generate
npx @better-auth/cli@latest generate
I get the error in the image. I tried to generate the schema on a lot of my better-auth projects but in vain.
No description
5 Replies
Maqed
MaqedOP7d ago
(node:10508) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) npm ERR! cb.apply is not a function npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\you\AppData\Roaming\npm-cache_logs\2025-04-12T16_23_57_931Z-debug.log Install for [ '@better-auth/cli@latest' ] failed with code 1 @bekacru could you please help me fix this issue?
bekacru
bekacru7d ago
can you try a diffrent pkg manager? pnpm dlx or bunx
Maqed
MaqedOP7d ago
I tried bunx but still not working
Maqed
MaqedOP7d ago
No description
Maqed
MaqedOP7d ago
error: Script not found "@better-auth/cli@latest" I'm currently tring pnpm dlx pnpm dlx is working but the rest isn't working Thank you so much for your help ❤️

Did you find this page helpful?