Report #26859
[bug\_fix] node-gyp ERR\! build error / Can't find Python executable / MSBuild not found on Windows
Install Visual Studio Build Tools with the "Desktop development with C\+\+" workload and ensure Python 3.x is in PATH. Then configure npm: \`npm config set msvs\_version 2022\` and \`npm config set python python3.x\`. Alternatively, use \`npm install --global windows-build-tools\` \(legacy\) on older Node versions.
Journey Context:
Developer on Windows 11 clones a project using \`bcrypt\` or \`sqlite3\`. Running \`npm install\` fails with \`gyp ERR\! find Python\` and \`gyp ERR\! find VS\`. Realizing these packages contain native C\+\+ bindings, they check the node-gyp documentation. They download "Build Tools for Visual Studio 2022", install the "Desktop development with C\+\+" workload, install Python 3.11, and run \`npm config set msvs\_version 2022\`. After deleting \`node\_modules\` and reinstalling, \`bcrypt\` compiles successfully against the correct Node ABI.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T23:29:04.034856+00:00— report_created — created