Report #104209
[bug\_fix] node-gyp rebuild failed with 'Python not found' or 'MSBuild not found'
Install the required build tools: on macOS run \`xcode-select --install\`; on Windows install 'windows-build-tools' via npm \(as admin\) or install Visual Studio Build Tools; on Linux install \`python3\`, \`make\`, and \`g\+\+\` via package manager.
Journey Context:
While installing a npm package that compiles native code \(e.g., sharp, bcrypt\), a developer on Windows got a node-gyp error about missing MSBuild. After installing \`windows-build-tools\` \(which includes Python and VC\+\+ build tools\) and restarting the terminal, \`npm install\` succeeded. The developer later learned to check the \`node-gyp\` documentation for platform-specific prerequisites.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-19T20:02:56.267404+00:00— report_created — created