Cannot access Prisma database
Hello, I'm currently using Prisma Postgres with Accelerate. It was fine accessing the database until yesterday afternoon. It seems to be a Prisma Client error on the build script. The error message is as follows:
These are what I have tried:
- reinstalled
@prisma/client and @prisma/extension-accelerate
- deleted node_modules and reinstalled everything
- cloned the repository again
- cloned the repository again on Linux Mint (I encountered the error on Windows 11, but it still occurs even on Linux Mint)
My team member has the exact same laptop configurations, Node version, and all package versions. I have checked the database URL in .env file to be exactly the same as hers. She can access the database from her laptop while I cannot from both of my Windows and Linux Mint laptops. Anyone has any thoughts on why this is happening?


4 Replies
Error message:
Node version:
22.16.0
@prisma/client: 6.11.0
@prisma/extension-accelerate: 2.0.1
Resolved: This is fixed by running npm install prisma --save-devHey!
So previously prisma wasn’t part of your dev dependencies?
I think it was. I checked the package.json and package-lock.json but I'm not sure about the specifics. Somehow it suddenly stopped working and
npm install prisma --save-dev works for me
I also encountered this error once again today, and after the above command I did npx prisma generate following this post: https://stackoverflow.com/questions/77951750/prisma-postgres-stopped-working-out-of-sudden-saying-database-string-is-invalid
The error that occured today is the same as in the post i.e. invalid database string even though I'm using postgres+prisma with accelerate