Report #12215
[bug\_fix] gyp ERR\! build error, gyp ERR\! stack Error: \`make\` failed with exit code: 2, node-gyp rebuild fails, cannot find python, MSBuild not found
Install platform build tools: On Windows: Install Visual Studio Build Tools with "Desktop development with C\+\+" workload; On macOS: xcode-select --install; On Linux: sudo apt-get install build-essential python3 make. Then run npm rebuild.
Journey Context:
Developer on Windows clones a project using bcrypt or sqlite3, runs npm install, sees node-gyp errors about Python executable not found or "make failed". They install Python from python.org but gyp still can't find it, set PYTHON environment variable, then get Visual Studio not found error. They download Visual Studio Community edition but forget to check C\+\+ workload, still fails. Finally finds they need the specific "MSVC v143 - VS 2022 C\+\+ x64/x86 build tools" component, installs it, npm rebuild succeeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T15:20:37.652287+00:00— report_created — created