Report #51202
[bug\_fix] gyp ERR\! find VS could not find any Visual Studio installation to use
Install Visual Studio Build Tools 2022 with the "Desktop development with C\+\+" workload, install Python 3.x, then configure npm: npm config set python python3.exe and npm config set msvs\_version 2022.
Journey Context:
A developer on Windows 10 clones a Node.js project using bcrypt for password hashing. Running npm install triggers a native compilation step that fails with "gyp ERR\! find VS could not find any Visual Studio installation to use." The developer has Visual Studio Code installed but not the C\+\+ compiler. They install Python from python.org, but node-gyp still fails. Reading the node-gyp documentation, they realize they need the Visual Studio Build Tools \(not the IDE\) with the C\+\+ compiler. They download Build Tools 2022 and must specifically check the "Desktop development with C\+\+" workload during installation to get the VC\+\+ compiler and Windows SDK. After installation, they run npm config set python python3.exe and npm config set msvs\_version 2022 to ensure node-gyp uses the correct paths. Deleting node\_modules and reinstalling then successfully compiles the native addon.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:25:52.257011+00:00— report_created — created