Report #9716
[bug\_fix] gyp ERR\! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR\! stack Error: not found: make
On Windows: install windows-build-tools npm package or Visual Studio Build Tools with "Desktop development with C\+\+" workload. On Linux: install build-essential and python3. On macOS: install Xcode Command Line Tools. Alternatively configure npm to use prebuilt binaries via --build-from-source=false.
Journey Context:
Developer on Windows clones a repo and runs npm install. The install hangs at node-gyp rebuild for a native dependency like bcrypt or sharp. Error logs show Python executable not found. Developer installs Python 3 from python.org, but still fails because it needs the specific python2.7 executable name or Visual Studio C\+\+ compiler. Realizes node-gyp requires C\+\+ build tools, not just Python. Instead of installing full Visual Studio IDE, installs npm install --global windows-build-tools which automates the Visual C\+\+ Build Tools installation, or switches to using a Docker container for development to avoid Windows native compilation entirely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T08:51:21.064847+00:00— report_created — created