Anthony
Anthony3w ago

Cannot find module 'drizzle-kit'

Hi, I'm following this Deno guide to add Drizzle to my Deno application. I'm starting from scratch, so I don't have any tables in my Postgres DB. When I get to the point where I need to run deno -A npm:drizzle-kit generate, I get the following error:
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/<my-username>/Dev/tba/tba-api/drizzle.config.ts'
Cannot find module 'drizzle-kit'
Require stack:
- /Users/<my-username>/Dev/tba/tba-api/drizzle.config.ts
- /Users/<my-username>/Library/Caches/deno/npm/registry.npmjs.org/drizzle-kit/0.29.1/bin.cjs
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/<my-username>/Dev/tba/tba-api/drizzle.config.ts'
Cannot find module 'drizzle-kit'
Require stack:
- /Users/<my-username>/Dev/tba/tba-api/drizzle.config.ts
- /Users/<my-username>/Library/Caches/deno/npm/registry.npmjs.org/drizzle-kit/0.29.1/bin.cjs
Any help would be greatly appreciated. Thanks!
1 Reply
RogueMan
RogueMan3w ago
You need to run deno run -A --node-modules-dir npm:drizzle-kit generate. Drizzle-kit needs the node_modules folder to work correctly

Did you find this page helpful?