better-auth/cli generate not working

PS C:\Users\x\Desktop\x\frontend> npx @better-auth/cli generate
npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\x\AppData\Roaming\npm-cache_logs\2025-07-30T14_19_26_631Z-debug.log
Install for [ '@better-auth/cli@latest' ] failed with code 1

How can I solve this?
Solution
Used Pnpm and it works
Was this page helpful?