Report #100923
[bug\_fix] gyp ERR\! stack Error: Can't find Python executable "python3", you can set the PYTHON env variable.
Install Python \(3.x\) and configure node-gyp: \`npm config set python python3\` OR set environment variable \`PYTHON=/usr/bin/python3\`. On Windows, install Python from python.org or Microsoft Store, and optionally run \`npm install --global windows-build-tools\` \(deprecated, prefer manual VS Build Tools\).
Journey Context:
A Windows developer with a fresh Node setup tried to install a package that requires node-gyp \(e.g., better-sqlite3\). The build failed because Python was not installed. After installing Python 3.11 from the Microsoft Store, node-gyp still couldn't find it. They ran \`npm config set python python3\` pointing to the Python executable path. A re-run of npm install compiled successfully. The root cause is that node-gyp relies on Python to generate native build files, and on Windows it is often missing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-02T15:47:44.435163+00:00— report_created — created