I run "deno -A npm:drizzle-kit generate", deno hits me with "Cannot find module 'drizzle-kit'"
Hello everyone, I'm pretty new to deno and I've been building an express app with drizzle as my ORM. The problem is, I can't seem to generate migration files with the
deno -A npm:drizzle-kit generate
command, instead deno throws an error
Please, can anyone help me? I've been battling this since yesterday, claude couldn't even provide a solution, here's the error deno give me:
Reading config file "C:\Users\me\Desktop\backend\drizzle-app\drizzle.config.ts"
Cannot find module 'drizzle-kit'
Require stack:
- C:\Users\me\Desktop\backend\drizzle-app\drizzle.config.ts
- C:\Users\me\AppData\Local\deno\npm\registry.npmjs.org\drizzle-kit\0.30.4\bin.cjs
4 Replies
Explain what you intend to happen with that command line you used...
Then people might be able to guide you better...
i want to generate the migration files from my declared schema vis drizzle orm, the command looks at my
drizzle.config.ts
file and runs the command with those settingsIt needs node_modules
https://github.com/denoland/deno/issues/19826#issuecomment-2425251999
GitHub
npm compat: unable to use "npm:drizzle-kit" cli tool · Issue #19826...
Note Demo / reproduction repository: https://github.com/andrewbrey/deno_npm_compat_drizzle-orm When attempting to use the drizzle-orm (https://orm.drizzle.team) tool called drizzle-kit to generate ...
omg thank you so much!!!