Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Get config: Error: Command failed with exit code 3221225781 #8827

Closed
dhatGuy opened this issue Aug 19, 2021 · 9 comments
Closed

Error: Get config: Error: Command failed with exit code 3221225781 #8827

dhatGuy opened this issue Aug 19, 2021 · 9 comments

Comments

@dhatGuy
Copy link

dhatGuy commented Aug 19, 2021

Bug description

Trying to run npx prisma -v returns error

Error: Get config: Error: Command failed with exit code 3221225781: C:\Users\user\AppData\Roaming\npm\node_modules\prisma\query-engine-windows.exe cli get-config --ignoreEnvVarErrors

How to reproduce

  1. npx prisma -v

fail message:

Error: Get config: Error: Command failed with exit code 3221225781: C:\Users\user\AppData\Roaming\npm\node_modules\prisma\query-engine-windows.exe cli get-config --ignoreEnvVarErrors

Expected behavior

Show prisma version

Prisma information

Environment & setup

  • OS: Windows 10
  • Database: PostgreSQL
  • Node.js version: v14.17.5

Prisma Version

prisma: 2.29.1
@prisma/client: 2.29.1
@dhatGuy dhatGuy added the kind/bug A reported bug. label Aug 19, 2021
@janpio
Copy link
Member

janpio commented Aug 19, 2021

Is this running on Windows directly or on Docker?

@janpio janpio added bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. topic: windows team/client Issue for team Client. labels Aug 19, 2021
@dhatGuy
Copy link
Author

dhatGuy commented Aug 19, 2021

Windows directly

@janpio
Copy link
Member

janpio commented Aug 19, 2021

Can not reproduce unfortunately:

C:\Users\Jan\Documents\throwaway\issue8827  (issue8827@1.0.0)
λ npx prisma -v
prisma               : 2.29.1
@prisma/client       : 2.29.1
Current platform     : windows
Query Engine         : query-engine 1be4cd60b89afa04b192acb1ef47758a39810f3a (at node_modules\@prisma\engines\query-engine-windows.exe)
Migration Engine     : migration-engine-cli 1be4cd60b89afa04b192acb1ef47758a39810f3a (at node_modules\@prisma\engines\migration-engine-windows.exe)
Introspection Engine : introspection-core 1be4cd60b89afa04b192acb1ef47758a39810f3a (at node_modules\@prisma\engines\introspection-engine-windows.exe)
Format Binary        : prisma-fmt 1be4cd60b89afa04b192acb1ef47758a39810f3a (at node_modules\@prisma\engines\prisma-fmt-windows.exe)
Default Engines Hash : 1be4cd60b89afa04b192acb1ef47758a39810f3a
Studio               : 0.419.0

C:\Users\Jan\Documents\throwaway\issue8827  (issue8827@1.0.0)
λ node -v
v14.17.5

@janpio janpio added kind/support and removed bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. labels Aug 19, 2021
@dhatGuy
Copy link
Author

dhatGuy commented Aug 19, 2021

My pc was stolen few days ago, so I decided to borrow a friend's pc to complete what I was working on. I only installed node, vscode and git. I'm not sure if I'm meant to install anything else.

@janpio
Copy link
Member

janpio commented Aug 19, 2021

I know you already tried #5597 (comment), and that it didn't help. There is another issue #6508 about the same error, but that also does not include very concrete steps to a solution.

Fundamentally the exit code means that something is missing on your system, but unfortunately it does not get more concrete about what is missing and how to fix it. Prisma does generally have not further dependencies.

If you google for the number, you will find answers mentioning that installing https://www.microsoft.com/en-us/download/details.aspx?id=48145 might help, but that sounds like a very long shot to me.

@dhatGuy
Copy link
Author

dhatGuy commented Aug 19, 2021

I have Visual C++ Redistributable for Visual Studio 2015 installed already and even repaired it but still no luck.

For now, I'll use the online vscode. Thanks

@dhatGuy
Copy link
Author

dhatGuy commented Aug 20, 2021

I have been able to solve the problem. I uninstalled node and reinstalled it with this option this time.
image

@janpio
Copy link
Member

janpio commented Aug 20, 2021

Nice, thanks for keeping us updated.

@gabriel-messas
Copy link

Installing Visual C++ 2015 Redistributable solved here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants