Report #76702
[bug\_fix] gyp ERR\! stack Error: not found: make/python2/msbuild
Install platform-specific build tools: windows-build-tools or Visual Studio Build Tools on Windows; python3 and build-essential on Linux; Xcode Command Line Tools on macOS.
Journey Context:
Developer runs npm install on a project depending on native addons \(bcrypt, sharp, sqlite3\). The install fails during node-gyp rebuild with errors about missing Python executable or C\+\+ compiler. Developer checks the node-gyp documentation and realizes native modules require a C\+\+ toolchain to compile against Node.js headers. On Windows, the fix is installing windows-build-tools via npm or the Visual Studio Installer with "Desktop development with C\+\+" workload. On Ubuntu/Debian, installing python3, make, and g\+\+ packages resolves it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T11:20:02.659948+00:00— report_created — created