You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I invoke prisma generate, even by calling the binary in .venv directly, it installs the @prisma library, then creates node_modules and generates the client in node_modules I have made sure to uninstall prisma from global modules
from prisma import Prisma() does not work.
everoot@uwucloud:~/dev/eve# ./.venv/bin/prisma generate --schema=./backend/prisma/schema.prisma
Prisma schema loaded from backend/prisma/schema.prisma
Warning: [Prisma auto-install on generate] Prisma could not find a package.json file in the inferred project root /root/dev/eve. During the next step, when an auto-install of Prisma package(s) will be attempted, it will then be created by your package manager on the appropriate level if necessary.
bun add v1.1.6 (e58d67b4)
installed prisma@5.11.0 with binaries:
- prisma
6 packages installed [794.00ms]
Removed: 1
bun add v1.1.6 (e58d67b4)
installed @prisma/client@5.11.0
1 package installed [103.00ms]
✔ Installed the @prisma/client and prisma packages in your project
✔ Generated Prisma Client (v5.11.0) to ./node_modules/@prisma/client in 338ms
Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
import { PrismaClient } from '@prisma/client/edge'
const prisma = new PrismaClient()
See other ways of importing Prisma Client: http://pris.ly/d/importing-client
┌─────────────────────────────────────────────────────────────┐
│ Deploying your app to serverless or edge functions? │
│ Try Prisma Accelerate for connection pooling and caching. │
│ https://pris.ly/cli/accelerate │
└─────────────────────────────────────────────────────────────┘
Bug description
my project structure
When I invoke prisma generate, even by calling the binary in .venv directly, it installs the @prisma library, then creates node_modules and generates the client in node_modules
I have made sure to uninstall prisma from global modules
from prisma import Prisma() does not work.
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
import { PrismaClient } from '@prisma/client/edge'
const prisma = new PrismaClient()
How to reproduce
Expected behavior
generate prisma client in python
Prisma information
Environment & setup
The text was updated successfully, but these errors were encountered: