question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Receiving this error: Command failed with exit code 3221225781

See original GitHub issue

Bug description

I am following this guide to setup a prisma project. When I run the prisma migrate command npx prisma migrate dev --name init, I receive this error:

Environment variables loaded from .env
Prisma schema loaded from prisma\schema.prisma
Error: Get config: Error: Command failed with exit code 3221225781: C:\Users\ahmed\Desktop\hello-prisma\node_modules\@prisma\engines\query-engine-windows.exe cli get-config

I also tried other commands like npx prisma dub push --preview-feature and npx prisma generate and I am receiving the same error above. I tried deleting all the cache in %AppDate% related to prisma and npm and also tried reinstalling node.js, tried using a sqlite database instead of postgres but nothing worked.

In addition to that error, also the prisma formatting extension is not working and gives me this error:

prisma-fmt error'd during formatting. To get a more detailed output please see Prisma Language Server output. To see the output, go to View > Output from the toolbar, then select 'Prisma Language Server' in the Output panel.

and this is output I get in vscode output window:

prisma-fmt error'd during formatting. Please report this issue on [Prisma Language Tools](https://github.com/prisma/language-tools/issues).

[Info  - 12:03:44 PM] Prisma plugin prisma-fmt installation succeeded.
[Info  - 12:03:44 PM] Installed version  of 'prisma-fmt' using path: c:\Users\ahmed\.vscode\extensions\prisma.prisma-2.20.1\node_modules\@prisma\language-server\dist\src\prisma-fmt\prisma-fmt.60ba6551f29b17d7d6ce479e5733c70d9c00860e.exe
[Error - 12:03:44 PM] Language Server failed while downloading url https://binaries.prisma.sh/all_commits/60ba6551f29b17d7d6ce479e5733c70d9c00860e/windows/prisma-fmt.exe.gz with fmtPath c:\Users\ahmed\.vscode\extensions\prisma.prisma-2.20.1\node_modules\@prisma\language-server\dist\src\prisma-fmt\prisma-fmt.60ba6551f29b17d7d6ce479e5733c70d9c00860e.exe.
[Error - 12:03:44 PM] [object Object]
[Error - 12:03:44 PM] Cannot install prisma-fmt: EBUSY: resource busy or locked, copyfile 'C:\Users\ahmed\AppData\Local\Temp\ce5080633ae91aaa2f26d7f695b36a06\partial' -> 'c:\Users\ahmed\.vscode\extensions\prisma.prisma-2.20.1\node_modules\@prisma\language-server\dist\src\prisma-fmt\prisma-fmt.60ba6551f29b17d7d6ce479e5733c70d9c00860e.exe'. Please:
1. Check your network connection and run `Prisma: Restart Language Server`, or
2. Manually download and uncompress the archive file, then set the path in `prisma.prismaFmtBinPath`

The achieve file can be acquired at:
  https://binaries.prisma.sh/all_commits/60ba6551f29b17d7d6ce479e5733c70d9c00860e/windows/prisma-fmt.exe.gz


[Error - 12:03:44 PM] prisma-fmt error'd during linting.

So, yeah, everything related to prisma is broken for me and I really need to start this project as soon as possible.

How to reproduce

this guide

Expected behavior

this guide

Prisma information

this guide

Environment & setup

  • OS: Windows
  • Database: PostgreSQL/SQLite
  • Node.js version: v14.16.1
  • Prisma version:
2.20.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

7reactions
ahmedosama5200commented, Apr 13, 2021

Alright, I installed Microsoft Visual C++ 2015 Redistributable and It worked

But still, This leaves me confused. Do you have this program installed on your windows machine? If so, then, Does it come preinstalled with your windows installation or did you manually install it?

I think that this is something the the rust team should be aware of.

Any way, Thank you so much, my problem is solved and everything is working fine now.

1reaction
olegKusovcommented, Sep 14, 2021

Install Visual C++ redistributable and error will be fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

trouble debugging error with exit code 3221225781 (missing ...
This is your program that is missing a dependency. Presumably, you as the program author should be aware of what dependencies are required....
Read more >
firmware update error 3221225781 - ArduSimple
Hello, I'm trying to setup a pair of simpleRTK2B's as a base and a rover, and I'm trying to update the firmware as...
Read more >
Vscode extension builds failing: "Exit code: 3221225781"
Recently vscode 1.42.0 became available, since then I've been seeing the following failure: $ npm test --silent Downloading VS Code 1.42.0 ...
Read more >
Docker install failing with error code : 3221225781
More details: Custom application is getting installed successfully on Windows 10 box, with the same command used in docker container install.
Read more >
Fix Process exited with code 1 error in Windows ... - YouTube
While running a command in Windows Terminal, Command Prompt or PowerShell, if you get Process exited with code 1 error message, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found