Fails on Windows if more than a few models
See original GitHub issueThis line
child_process.exec(`${engine} --datamodel=${modelB64} cli dmmf`);
throws
The command line is too long.
at ChildProcess.exithandler (child_process.js:383:12)
at ChildProcess.emit (events.js:400:28)
at maybeClose (internal/child_process.js:1058:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
I have about 30 models in a schema.prisma
that’s 480 lines — so not that big, really. I can copy out the command and run it directly from the Windows terminal without trouble, i.e.
> node_modules\prisma\query-engine-windows.exe --datamodel=[bunch of Base64] cli dmmf
so pretty sure it’s just a node Windows limitation.
I am looking into whether there’s a different way to process the file.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Unexplained Windows or software behavior may be caused ...
Components of Windows or other programs no longer work. Cause. This issue may occur when deceptive software, such as spyware that is known...
Read more >Some versions of Windows 10 display a notification to install ...
Discusses the reasons that some versions of Windows 10 display a notification to install the latest Windows version.
Read more >Fix printer connection and printing problems in Windows
If you're trying to use your printer and run into problems, here are some steps for common printer problems to try to get...
Read more >Troubleshoot blocked .NET Framework installations and ...
The installation of the .NET Framework 4.5 or its point releases fails with a 1603 error code or blocks when it's running in...
Read more >Get help with Windows upgrade and installation errors
See some of the most common upgrade and installation errors for Windows 10 and Windows 11, and what you can do to try...
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
Alright! Merging and promoting out to v0.5.3
I removed v0.5.2 (just to be sure), deleted the SVG, and installed v0.5.3-0. It correctly generated the SVG on Windows. 👍