Report #54292
[bug\_fix] gyp ERR\! build error, gyp ERR\! stack Error: not found: make, or gyp ERR\! find Python could not find Python executable
Install platform-specific native build tools: On Windows, install windows-build-tools \(npm install --global windows-build-tools\) or Visual Studio Build Tools with 'Desktop development with C\+\+' workload. On macOS, install Xcode Command Line Tools \(xcode-select --install\). On Linux, install build-essential, python3, and make. Alternatively, if prebuilt binaries exist for the package, ensure npm\_config\_build\_from\_source is not set to force downloading instead of compiling. Root cause: Native Node.js addons \(C\+\+ extensions\) must be compiled against the local V8/Node ABI using node-gyp, which requires Python and a C\+\+ compiler toolchain.
Journey Context:
The developer runs npm install on a project using bcrypt, sqlite3, or node-sass on a fresh Windows machine. The install crashes with obscure C\+\+ compilation errors mentioning MSBuild or cl.exe. Realizing it's trying to compile a native addon, they check the node-gyp README. It lists Python 3 and Visual Studio Build Tools as requirements. They install Python from the Microsoft Store and the massive Visual Studio Build Tools with the 'Desktop development with C\+\+' workload. Running npm install again succeeds because node-gyp can now invoke the C\+\+ compiler to build the .node binary against the current Node.js version's ABI.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:37:40.644707+00:00— report_created — created