Report #96808
[bug\_fix] gyp ERR\! stack Error: not found: make npm ERR\! gyp ERR\! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
Install platform-specific build tools: macOS: xcode-select --install; Windows: Install Visual Studio Build Tools with "Desktop development with C\+\+" workload and run npm config set msvs\_version 2022; Linux: sudo apt-get install build-essential python3. Then npm rebuild. Root cause: Native Node.js addons \(C\+\+ bindings like bcrypt, sharp, sqlite3\) must be compiled against Node's ABI using node-gyp, which requires Python and a C\+\+ compiler toolchain.
Journey Context:
Developer clones a project using bcrypt for password hashing and runs npm install. On Windows, sees gyp ERR\! find VS and msvs\_version not set. Installs Python 3.11, still fails. Discovers node-gyp requires Visual Studio Build Tools, not just Python. Downloads VS Build Tools 2022, runs npm config set msvs\_version 2022, npm install succeeds. On Linux CI/CD, build fails with make: command not found, fixed by adding build-essential to the Docker image.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:04:40.651553+00:00— report_created — created