Skip to content

flutter platform ERROR"spawn dart run orm ENOENT" #416

Description

@lsxqer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions