Report #15119
[bug\_fix] node-gyp ERR\! build error / gyp ERR\! find VS / gyp ERR\! find Python
Install platform-specific build tools: Windows: npm install --global windows-build-tools \(or Visual Studio Build Tools with 'Desktop development with C\+\+' workload\), macOS: xcode-select --install, Linux: sudo apt-get install build-essential python3 make. Alternatively, switch to pure-JS alternatives \(e.g., sass instead of node-sass\).
Journey Context:
You npm install a package like bcrypt, node-sass, or native-addons on a fresh machine. The install fails with cryptic errors about MSBuild.exe not found, or Python 2.7 not found, or 'gyp ERR\! stack Error: not found: make'. You try reinstalling Node, clearing cache, but the error persists. You realize these packages compile C\+\+ native addons using node-gyp. The error logs show it's looking for Visual Studio on Windows, or gcc/make on Linux, or Xcode on Mac. After checking the node-gyp documentation, you understand that native modules require a C\+\+ compiler and Python. The fix is installing the build tools for your platform, not fixing the npm package itself.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:15:34.574484+00:00— report_created — created