these are my local files
schema.prisma
generator client {
provider = "dart run orm"
}
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
}
model User {
id Int @id @default(autoincrement())
age Int
email String @unique
name String?
}
.env
DATABASE_URL="fil:./test.db"
dependencies:
flutter:
orm: ^3.4.8
I followed the instructions in the document:
1. dart pub add orm
2. bun prisma init --generator-provider="dart run orm"
3. bux prisma generate -> error
I encountered an error while executing this command
Environment variables loaded from .env
Prisma schema loaded from prisma\schema.prisma
Error: spawn dart run orm ENOENT
I want to know why this is? Did I use it incorrectly? How should I modify it
these are my local files
schema.prisma
.env
I followed the instructions in the document:
I want to know why this is? Did I use it incorrectly? How should I modify it