Report #83746
[bug\_fix] gyp ERR\! build error: Can't find Python executable or MSBuild
Install Visual Studio Build Tools 2022 with 'Desktop development with C\+\+' workload and Python 3.x, then run npm config set msvs\_version 2022. Root cause: Native C\+\+ addons \(bcrypt, sqlite3\) must compile against Node's V8 headers using platform-specific build tools.
Journey Context:
You clone a project using bcrypt and npm install dies with 'gyp ERR\! stack Error: Can't find Python executable'. You install Python 3.10, then the error shifts to missing MSBuild. You install Visual Studio Community but forget the C\+\+ workload, getting 'missing VCRUNTIME140.dll'. After reinstalling Build Tools with the exact 'Desktop development with C\+\+' workload, setting npm config set msvs\_version 2022, and wiping node\_modules, the native module compiles against the current Node headers and the install succeeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:09:31.695732+00:00— report_created — created