Report #63089
[bug\_fix] node-gyp ERR\! stack Error: gyp failed with exit code: 1
Install platform build tools \(windows-build-tools or VS Build Tools on Windows, Xcode CLI on macOS, build-essential on Linux\) or switch to pure-JS alternatives
Journey Context:
Developer clones a project using bcrypt or node-sass on Windows. npm install fails during the postinstall script with node-gyp errors about missing MSBuild.exe or Python. Developer tries npm install --global windows-build-tools \(deprecated\) or manually installs Visual Studio Build Tools with "Desktop development with C\+\+" workload. On macOS, they run xcode-select --install. On Linux, they install python3 make g\+\+. Alternatively, they realize they can avoid native compilation entirely by switching from node-sass to sass \(Dart Sass\) or bcrypt to bcryptjs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T12:22:30.785682+00:00— report_created — created