Open-Trader/opentrader

`moon run prisma:migrate` exited with error "Environment variable not found" on Windows

開放

#96 建立於 2025年1月9日

 (1 則留言) (0 個反應) (0 位負責人)TypeScript (319 個分叉)auto 404
buggood first issue

倉庫指標

星標
 (2,749 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I can confirm that this is reproducible only on Windows.

Reproduction steps:

  1. Follow installation steps from CONTRIBUTING.md

  2. Next, generate Prisma client:

moon run prisma:migrate

Command failed: "Environment variable not found"

image

Workaround:

If the command is executed as follows, it works fine:

pnpm exec prisma migrate dev --schema packages/prisma/src/schema.prisma

For some reason Prisma does not load the ENV variables from .env file, so the schema must be specified manually.

貢獻者指南