Report #92967
[bug\_fix] gyp ERR\! stack Error: not found: make/python - node-gyp rebuild failed
Install platform build tools: Xcode Command Line Tools \(macOS\), build-essential \(Linux\), or Visual Studio Build Tools \(Windows\). Set Python path if needed. Root cause: Native Node.js addons \(C\+\+ modules\) require compilation, needing Python 3 and a C\+\+ compiler toolchain.
Journey Context:
Developer clones a repository using bcrypt or sqlite3 on a brand new M2 MacBook. Running npm install fails during the postinstall phase with 'gyp ERR\! stack Error: \`make\` failed with exit code: 69' and earlier logs show 'xcrun: error: invalid active developer path'. The developer recognizes this as missing Xcode Command Line Tools. They run xcode-select --install and retry, but now get Python-related errors because node-gyp expects Python 3 but the system defaults to Python 2 or none. They install Python 3 via Homebrew and configure npm python path with npm config set python python3. After these steps, npm install successfully compiles the native module.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:37:59.367327+00:00— report_created — created