Skip to content

Output better error message than ...query_engine-windows.dll.node The specified module could not be found. or Command failed with exit code 3221225781 #9975

@CarmeloDascola

Description

@CarmeloDascola

Bug description

I am trying to set up an existing project in a new device running Win10. I install the dependencies (including "@prisma/client": "^3.3.0"). When I try to run prisma generate I get this:

Prisma schema loaded from prisma\schema.prisma
Error: Unable to require(`C:\Users\carme\AppData\Roaming\npm\node_modules\prisma\query_engine-windows.dll.node`)
 The specified module could not be found.
\\?\C:\Users\carme\AppData\Roaming\npm\node_modules\prisma\query_engine-windows.dll.node

query_engine-windows.dll.node is in my project node_modules/prisma folder, but it doesn't appears in node_modues/.prisma

If I try to run prisma -v I get:

Error: Command failed with exit code 3221225781: C:\Users\carme\AppData\Roaming\npm\node_modules\prisma\node_modules\@prisma\engines\introspection-engine-windows.exe --version

Tried deleting node_modules, manually reinstalling @prisma/client, rebooting the system, but no success. Any idea? thanks.

How to reproduce

In my case just running prisma generate causes the issue.

Expected behavior

No response

Prisma information

Environment & setup

OS: Windows 10
Database: PostgreSQL
Node.js version: v16.13.0

Prisma Version


Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions