Report #91728
[bug\_fix] gyp ERR\! find Python Python is not set from command line or npm configuration gyp ERR\! find Python Python is not installed or not in PATH gyp ERR\! find VS VC\+\+ build tools not installed
Install windows-build-tools globally \(npm install --global windows-build-tools\) or manually install Visual Studio Build Tools with the 'Desktop development with C\+\+' workload and Python 3.8\+. Root cause: Native Node.js modules \(C\+\+ addons\) require Python for GYP build scripts and a C\+\+ compiler \(MSVC on Windows\) to compile the addon.
Journey Context:
You're on Windows trying to install bcrypt or sqlite3. npm install fails with 'gyp ERR\! find Python' or 'gyp ERR\! find VS'. You realize you don't have Visual Studio installed. You try installing Python 3.10 but it still fails because older node-gyp looks for python2.7 by default. You check the node-gyp README on GitHub and see the windows-build-tools solution, run npm install --global windows-build-tools --vs2015, wait 20 minutes for the 3GB download, then retry npm install and it compiles successfully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:33:31.908746+00:00— report_created — created