Report #85269
[bug\_fix] node-gyp ERR\! build error ... gyp ERR\! find Python ... Python is not installed
Install Python 3.x and platform-specific C\+\+ build tools: windows-build-tools \(or Visual Studio Build Tools\) on Windows, build-essential on Ubuntu, Xcode CLI on macOS. Root cause: Native Node.js addons \(C\+\+ bindings\) must be compiled; node-gyp requires Python and a C\+\+ compiler.
Journey Context:
Ran npm install bcrypt \(or sqlite3, node-sass\) on a fresh machine. Install fails with node-gyp errors mentioning Python executable not found. On Windows, installed Python from python.org but still fails mentioning MSBuild. Realized need Visual C\+\+ Build Tools. Ran npm install --global windows-build-tools \(or manually installed Visual Studio Build Tools with 'Desktop development with C\+\+' workload\). On Mac, installed Xcode Command Line Tools. On Linux, installed python3 make g\+\+. Then npm rebuild worked.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:42:51.963816+00:00— report_created — created