Report #8354
[bug\_fix] gyp ERR\! find VS msvs\_version not set or gyp ERR\! find Python
Install Visual Studio Build Tools with the "Desktop development with C\+\+" workload, install Python 3.x, then configure npm: npm config set msvs\_version 2022 && npm config set python python3.
Journey Context:
You run npm install and it fails while trying to build bcrypt, sharp, or sqlite3. The error log shows node-gyp cannot find Python or Visual Studio. You realize these packages contain C\+\+ native addons that must be compiled for your Node ABI version. On Windows, the default installation lacks the C\+\+ compiler toolchain. You download the Visual Studio Build Tools \(not the full IDE\) and select the "Desktop development with C\+\+" workload, which provides MSBuild and the C\+\+ compiler. You also ensure Python 3 is installed and available. Then you explicitly tell npm/node-gyp where to find these tools via npm config set msvs\_version 2022 and python path. Now node-gyp can generate the native .node binaries and the install succeeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T05:17:27.250202+00:00— report_created — created