Drizzle-ORM Installed but Drizzle Can't Find its Config?
I'm trying to follow the docs to install Drizzle with Postgres on my React Native Expo starter, but no matter what I get this:
But the drizzle.config.ts file is there, and drizzle-orm is installed. Does anybody know what's going on?
Here's the repo I'm working with: https://github.com/psygo/clerk_expo_drizzle_starter
This is the docs tutorial I was following: https://orm.drizzle.team/docs/get-started/postgresql-new
GitHub
GitHub - psygo/clerk_expo_drizzle_starter
Contribute to psygo/clerk_expo_drizzle_starter development by creating an account on GitHub.
Drizzle ORM - PostgreSQL
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
3 Replies
https://stackoverflow.com/q/79615063/4756173
Unbelivably, what solved things was that
pnpx
doesn't work with it, only npx
.pnpx
has different semantics than npx
https://pnpm.io/cli/dlx
pnpx
is an alias for pnpm dlx
, which is: Fetches a package from the registry without installing it as a dependency, hotloads it, and runs whatever default command binary it exposes --> Meaning pnpx
is not scoped to your project; it runs globallypnpm dlx | pnpm
Aliases: pnpx is an alias for pnpm dlx
Solution to your problem: with
pnpm
, you can just run pnpm drizzle-kit push
, or pnpm exec drizzle-kit push