Report #3620
[bug\_fix] gyp ERR\! stack Error: not found: make \(or MSBuild error on Windows\)
On Windows, install Visual Studio Build Tools 2019 or 2022 with the "Desktop development with C\+\+" workload, ensure Python 3.x is in PATH, and run npm config set msvs\_version 2019. On macOS, install Xcode Command Line Tools \(xcode-select --install\). On Linux, install build-essential and python3-dev packages.
Journey Context:
You clone a project and run npm install on Windows. The install fails during the postinstall phase for a native module like bcrypt, sharp, or sqlite3, showing "gyp ERR\! stack Error: not found: make" on Linux/Mac, or on Windows: "error MSB4019: The imported project 'C:\\Microsoft.Cpp.Default.props' was not found". You try installing Python manually, but the error persists. You realize that node-gyp \(the build tool for native Node.js addons\) requires a full C\+\+ compiler toolchain—not just Python. On Windows, this specifically means the Visual Studio Build Tools \(not the IDE\) with the exact "Desktop development with C\+\+" workload selected, and you must tell npm which version you installed via npm config set msvs\_version. On macOS, you need the Xcode CLI tools to get clang. Only then can node-gyp compile the native code against the V8 headers bundled with Node.js.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T17:46:00.500978+00:00— report_created — created