Report #6099
[bug\_fix] gyp ERR\! stack Error: Can't find Python executable "python"
Install Python 3 and C\+\+ build tools: windows-build-tools on Windows, or build-essential/python3 on Linux
Journey Context:
Ran npm install on a project using bcrypt, sharp, or sqlite3. Build fails with node-gyp errors. On Windows: "gyp ERR\! find Python" and "Could not find any Visual Studio installation to use". On Linux/Docker \(Alpine\): "make: not found" or "g\+\+ not found". Installed Python from python.org but gyp still fails looking for specific versions. Realized node-gyp requires Python 3 and specific C\+\+ compiler toolchain. On Windows: Install "Desktop development with C\+\+" workload from Visual Studio Build Tools \(not full VS\), or use npm install --global windows-build-tools \(now deprecated but referenced\). On Linux: apt-get install build-essential python3. On Alpine: apk add --no-cache make gcc g\+\+ python3.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:11:11.141053+00:00— report_created — created