unknown command: drizzle-kit
Can't seem to get the command to work. Followed the instructions of the quick start guide. Any ideas?
15 Replies
Pretty sure you need to put an
npx
in front of it
I.e. npx drizzle-kit generate:pg
for exampleOh, nice yeah that fixed it
Any idea why I'm getting "Host and database required" given my config?
Yeah I've been getting that same error when trying to
push:pg
, can't help you with that, sorryDamn, maybe the developer will see this thread. Fingers crossed
If you're pushing to your database, drizzle will read your config file. the config doesn't have the ability to read your
.env
.
In order the fix it you need the dotenv package.
Simply import it at the top of the file
import 'dotenv/config';
Same issue
Try providing the connectionString only
Yeah, now it works. Do you have any idea how to deal with:
Replace this in the end of your connection string
?ssl={"rejectUnauthorized":true}
Ignore this
I thought you were using Planetscale 💀I am
I did that and I still get an error:
Is this the only error message you got ?
Yeah
Uh, I reran it without changing anything and it worked
I don't know if something was cached or whatever, but that's neat