Report #26645
[bug\_fix] gyp ERR\! stack Error: not found: make/python2/MSBuild
Install platform-specific build tools: windows-build-tools or Visual Studio Build Tools \(Windows\), Xcode Command Line Tools \(macOS\), or build-essential \(Linux\).
Journey Context:
Developer clones a repository and runs npm install. The install fails during the node-gyp rebuild phase for a native addon \(bcrypt, sharp, sqlite3, or old node-sass\). The error log shows gyp ERR\! stack Error: not found: make on Linux/macOS, or missing Python 2/3, or MSBuild.exe not found on Windows. Developer realizes these are C\+\+ compilation tools required to build native Node.js addons. On Windows, they install Visual Studio Build Tools with the "Desktop development with C\+\+" workload, or use npm install --global windows-build-tools. On macOS, they run xcode-select --install. On Linux, they install build-essential and python3. After installing these, npm rebuild or deleting node\_modules and reinstalling succeeds because node-gyp can now find the compilers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T23:07:16.025134+00:00— report_created — created