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:
pnpx drizzle-kit push --config=drizzle.config.ts

Reading config file '/Users/phili/Code/clerk_expo_sso_starter/drizzle.config.ts'
Error please install required packages: 'drizzle-orm'
pnpx drizzle-kit push --config=drizzle.config.ts

Reading config file '/Users/phili/Code/clerk_expo_sso_starter/drizzle.config.ts'
Error please install required packages: 'drizzle-orm'
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
psygo
psygoOP3w ago
https://stackoverflow.com/q/79615063/4756173 Unbelivably, what solved things was that pnpx doesn't work with it, only npx.
oke
oke2w ago
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 globally
pnpm dlx | pnpm
Aliases: pnpx is an alias for pnpm dlx
oke
oke2w ago
Solution to your problem: with pnpm, you can just run pnpm drizzle-kit push, or pnpm exec drizzle-kit push

Did you find this page helpful?