Report #50074
[bug\_fix] gyp ERR\! find Python / gyp ERR\! find VS msvs\_version not found from node-gyp
Install Visual Studio Build Tools with the "Desktop development with C\+\+" workload, or on Windows run \`npm config set msvs\_version 2022\` after installing the build tools. On Linux install \`build-essential\` and \`python3\`.
Journey Context:
You \`npm install\` a package with native bindings \(bcrypt, sharp, sqlite3\). It dies with "Can't find Python" or "MSBuild not found". You install Python 3.11 but node-gyp wants specific paths. You realize it's looking for Visual Studio compilers, not just Python. You download the 6GB Visual Studio Build Tools, check the C\+\+ box, set \`npm config set msvs\_version 2022\`, and the C\+\+ compiler finally finds \`windows.h\`. The native module compiles.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T14:31:47.400449+00:00— report_created — created