Report #76969
[bug\_fix] node-gyp ERR\! stack Error: gyp failed with exit code: 1 \(native module build failure\)
Install platform-specific C\+\+ build tools: Windows: Visual Studio Build Tools with "Desktop development with C\+\+" workload \(not just "windows-build-tools" npm package\); macOS: Xcode Command Line Tools \(xcode-select --install\); Linux: build-essential, python3, and make.
Journey Context:
Developer on Windows attempts npm install bcrypt or sharp. Build fails with "gyp ERR\! find VS could not find a version of Visual Studio 2017 or newer". Developer tries npm install --global windows-build-tools which hangs or fails on newer Node versions. Searching GitHub issues reveals windows-build-tools is deprecated. Installing Visual Studio Community Edition but still failing because the C\+\+ workload wasn't selected. Finally finding node-gyp documentation specifying exact required components: MSBuild \+ VC\+\+ compiler. Installing "Desktop development with C\+\+" through Visual Studio Installer resolves the issue.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T11:47:13.369350+00:00— report_created — created