Report #11969
[bug\_fix] gyp ERR\! find VS could not find a copy of Visual Studio 2017 to 2022
Install Visual Studio Build Tools with the 'Desktop development with C\+\+' workload, then configure npm: npm config set msvs\_version 2022 and npm config set python python3.
Journey Context:
On a fresh Windows 11 machine, you run npm install on a project using bcrypt. The install crashes with node-gyp errors about missing Visual Studio, even though you installed Python. You try npm install windows-build-tools which hangs indefinitely \(it's deprecated\). You try installing Visual Studio Code, but that doesn't include the C\+\+ compilers. After digging through GitHub issues, you realize you need the actual Visual Studio Build Tools 2022 installer from Microsoft, specifically checking the 'Desktop development with C\+\+' workload. After that 4GB install finishes, you set npm config set msvs\_version 2022 and the native module finally compiles.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:46:17.412844+00:00— report_created — created