Report #91534
[bug\_fix] gyp ERR\! build error during npm install
Install platform-specific C\+\+ build tools: windows-build-tools \(Python and Visual C\+\+ Build Tools\) on Windows, Xcode Command Line Tools on macOS \(xcode-select --install\), or build-essential and python3 on Linux.
Journey Context:
You run npm install on a project depending on bcrypt, sharp, or sqlite3. The install fails with verbose logs showing node-gyp attempting to compile C\+\+ code and failing with errors like 'gyp ERR\! stack Error: not found: make' or 'MSB8036: The Windows SDK version 8.1 was not found'. You realize these packages contain native C\+\+ addons that must be compiled for your specific Node.js version and architecture. The root cause is that node-gyp \(Node.js's native addon build tool\) requires Python and a C\+\+ compiler toolchain to be present on the system, which are not included with Node.js installations. Installing the platform-specific build toolchains provides the compilers, headers, and Python interpreters needed to rebuild the native modules.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:13:55.232108+00:00— report_created — created