Report #31552
[bug\_fix] gyp ERR\! stack Error: not found: make gyp ERR\! stack at getNotFoundError \(/usr/local/lib/node\_modules/npm/node\_modules/node-gyp/lib/find-program.js:xx:xx\) gyp ERR\! System Linux 5.4.0 npm ERR\! code ELIFECYCLE npm ERR\! syscall spawn
Install platform-specific build toolchains: on Ubuntu/Debian run sudo apt-get install build-essential python3, on macOS run xcode-select --install, on Windows install windows-build-tools via npm or Visual Studio Build Tools with the 'Desktop development with C\+\+' workload.
Journey Context:
A developer on a fresh macOS or Docker Alpine image runs npm install on a project using bcrypt, sharp, or sqlite3. The install crashes with 'gyp ERR\! stack Error: not found: make' or 'Can't find Python executable'. They initially think the package is broken. They search the error and land on the node-gyp GitHub repository. They learn that these are native C\+\+ addons that must be compiled. On macOS, they need the Xcode Command Line Tools. On Linux, they need build-essential and python3. On Windows, the solution is more complex—either npm install windows-build-tools \(legacy\) or installing Visual Studio Build Tools with specific C\+\+ workloads. After installing the toolchain, they delete node\_modules and reinstall, and the native module compiles successfully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:20:43.273554+00:00— report_created — created