npx prisma generate --watch Error: write EPIPE
See original GitHub issueBug description
Running npx prisma generate
watch mode will generate the following error
Generated Prisma Client (2.24.1) to ./node_modules/@prisma/cli
ent in 21.09s
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:160:15)
at writeGeneric (node:internal/stream_base_commons:151:3)
at Socket._writeGeneric (node:net:769:11)
at Socket._write (node:net:781:8)
at writeOrBuffer (node:internal/streams/writable:389:12)
at _write (node:internal/streams/writable:330:10)
at Socket.Writable.write (node:internal/streams/writable:334:10)
at GeneratorProcess.sendMessage (/Users/farmer/Desktop/nine-link-ring/MagicCube-API/node_modules/prisma/build/index.js:27660:24)
at /Users/farmer/Desktop/nine-link-ring/MagicCube-API/node_modules/prisma/build/index.js:27704:14
at new Promise (<anonymous>)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
How to reproduce
- schema
generator client {
provider = "prisma-client-js"
previewFeatures = ["microsoftSqlServer"]
}
datasource db {
provider = "sqlserver"
url = env("DATABASE_URL")
}
- run
npx prisma db pull
npx prisma generate --watch
Expected behavior
No response
Prisma information
generator client {
provider = "prisma-client-js"
previewFeatures = ["microsoftSqlServer"]
}
datasource db {
provider = "sqlserver"
url = env("DATABASE_URL")
}
model ACCOUNT {
ACCOUNT_ID Int @id @default(autoincrement())
ACCOUNT_NAME String @db.NVarChar(10)
CODE String @db.NVarChar(20)
OPEN_TIME DateTime @db.Date
ALL_PURPOSE_CARD ALL_PURPOSE_CARD[]
}
Environment & setup
OS: Mac OS Database: SqlServer Node.js version: v16.3.0
Prisma Version
prisma : 2.24.0
@prisma/client : 2.24.1
Current platform : darwin
Query Engine : query-engine f3e341280d96d0abc068f97e959ddf01f321a858 (at ../../../.tnvm/versions/node/v16.3.0/lib/node_modules/prisma/node_modules/@prisma/engines/query-engine-darwin)
Migration Engine : migration-engine-cli f3e341280d96d0abc068f97e959ddf01f321a858 (at ../../../.tnvm/versions/node/v16.3.0/lib/node_modules/prisma/node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine : introspection-core f3e341280d96d0abc068f97e959ddf01f321a858 (at ../../../.tnvm/versions/node/v16.3.0/lib/node_modules/prisma/node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary : prisma-fmt f3e341280d96d0abc068f97e959ddf01f321a858 (at ../../../.tnvm/versions/node/v16.3.0/lib/node_modules/prisma/node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash : f3e341280d96d0abc068f97e959ddf01f321a858
Studio : 0.397.0
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Prisma CLI Command Reference
The generate command will generate Prisma Client for use with the Data Proxy. --watch, No, The generate command will continue to watch the...
Read more >RedwoodJS 22.1 and Prisma 12.1 Workaround for Intermittent
I encountered several errors after upgrading to 22.1 with Prisma 12.1especially when using findFirst and findUnique but the issue is not ...
Read more >prisma/client did not initialize yet. Please run "prisma generate ...
prisma and have to use npx prisma generate . The solution for me is to restart the node application running npm start again....
Read more >Re: write EPIPE error on generating html to pdf
Hi Team,. I'm trying to generate html to pdf using html-pdf npm. Please check below code const invoicePath = path.resolve(path.join(__dirname, '../../.
Read more >80% of the time build fails with Error: write EPIPE error
Hi, I keep getting this error when using v4.0.0: Module build failed: Error: write EPIPE at _errnoException (util.js:1031:13) at WriteWrap.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I haven’t run into this bug for months now, and it’s definitely not showing on 3.14.
I can see that I neglected to mention which version I was using previously, but from looking at the commit log it seems it may have been ~2.29. I’m not sure when it disappeared, but I haven’t seen it for a good while, in any of the projects I use prisma in.
I can consistently reproduce this bug:
prisma generate --watch
in one placeprisma format