Troubleshooting
Resolve common issues with Prisma Postgres
This guide helps resolve common issues when working with Prisma Postgres.
The --db option is not recognized when running prisma init
Section titled “The --db option is not recognized when running prisma init”Problem
Section titled “Problem”Running the following command fails because the --db option is not recognized:
bunx --bun prisma init --dbpnpm prisma init --dbyarn prisma init --dbnpx prisma init --dbThis can occur due to npx caching. If you've previously run npx prisma init, your machine may be using an outdated cached version that doesn't recognize the --db flag because it was only introduced in a later version of Prisma ORM.
Solution
Section titled “Solution”Explicitly run the Prisma ORM 7 CLI through its prev dist-tag:
bunx --bun prisma@prev init --dbpnpm dlx prisma@prev init --dbyarn dlx prisma@prev init --dbnpx prisma@prev init --dbThis runs the latest Prisma ORM 7 CLI, which supports the flag, preventing issues with outdated command syntax.
Workspace plan limit reached when running prisma init --db
Section titled “Workspace plan limit reached when running prisma init --db”Problem
Section titled “Problem”When running the command:
bunx --bun prisma@prev init --dbpnpm dlx prisma@prev init --dbyarn dlx prisma@prev init --dbnpx prisma@prev init --dbYou may encounter the following error message in your logs:
Workspace plan limit reached for feature "Project".Your default workspace project limit has been reached.
Solution
Section titled “Solution”To resolve this issue, consider the following options:
- Configure a different Workspace as your default, one that has available capacity for additional projects.
- Delete unused projects or databases from your current default Workspace to free up space.
- Ensure that you are logged into the correct account in the Prisma CLI. For more details on authentication and account management, please refer to the Prisma CLI documentation.
- Upgrade to a plan that supports more projects in your default Workspace.