Report #70772
[bug\_fix] node-gyp ERR\! build error - Failed to rebuild native addon \(MSBuild/Python missing\)
Install Visual Studio Build Tools with C\+\+ workload and Python 3.10\+, or switch to pure-JS alternatives \(bcryptjs\) to avoid native compilation.
Journey Context:
Developer on Windows 11 clones a repository using bcrypt or sharp. npm install fails with 'gyp ERR\! find VS' or 'MSBuild not found'. They try 'npm install --global windows-build-tools' but it's deprecated and fails on Windows 11. After checking the node-gyp repository issues, they realize node-gyp requires the 'Desktop development with C\+\+' workload from Visual Studio Build Tools 2022 and Python 3.10\+ in PATH. Alternatively, they replace bcrypt with bcryptjs to eliminate the native dependency entirely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:22:17.623142+00:00— report_created — created