prisma: Prisma engines can't run on fresh installation of Windows without MSVCR
Bug description
Prisma schema loaded from prisma\schema.prisma
Error: Unable to require(`C:\Users\emad-\code\api_v3\node_modules\prisma\query_engine-windows.dll.node`)
The specified module could not be found.
\\?\C:\Users\emad-\code\api_v3\node_modules\prisma\query_engine-windows.dll.node
How to reproduce
npm install prisma --save-dev
npx prisma generate
Expected behavior
No response
Prisma information
will be shared later if needed.,
Environment & setup
- OS: Windows 11
- Database: Mysql
- Node.js version:v14.18.1
Prisma Version
latest version, running prisma -v
output
Error: Command failed with exit code 3221225781: C:\Users\emad-\code\api_v3\node_modules\@prisma\engines\introspection-engine-windows.exe --version
tho
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (5 by maintainers)
The other issue suggest installing
Microsoft Visual C++ 2015 Redistributable
would fix this so please try installing that.That fixed it, Thank you so much!
i was trying to fix this for days without luck, i even searched in the issues. weird that i didn’t get the issue you mention!
I wonder if we should compile engines with
-C target-feature=+crt-static
forx86_64-pc-windows-msvc
to avoid this kind of issues.Thanks a lot , you saved me @pantharshit00