Report #66679
[bug\_fix] gyp ERR\! find Python gyp ERR\! find VS or node-gyp rebuild failed
Install Python 3.x and Visual Studio Build Tools with C\+\+ workload \(Windows\) or Xcode Command Line Tools \(macOS\), then npm config set python python3
Journey Context:
Developer clones a Node project using bcrypt on a fresh Windows machine. Runs npm install and compilation fails with 'Can't find Python executable'. Installs Python from python.org but error persists. Realizes node-gyp requires specific Python paths and Visual C\+\+ Build Tools. Installs 'Desktop development with C\+\+' workload via Visual Studio Build Tools. On macOS, installs Xcode Command Line Tools. May need to configure npm to use python3 explicitly via npm config set python python3. After hours of chasing missing compiler errors, native modules finally compile against Node headers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T18:23:56.112418+00:00— report_created — created