Report #66065
[bug\_fix] gyp ERR\! find VS or gyp ERR\! find Python
Install the Visual Studio Build Tools with the 'Desktop development with C\+\+' workload, or on macOS/Linux ensure Python 3 and make/gcc are installed. Then configure npm to use the correct Python path with 'npm config set python python3'.
Journey Context:
You run npm install on a Windows machine and it fails while trying to compile bcrypt or node-sass. The error log shows 'gyp ERR\! stack Error: Can't find Python executable "python"'. You install Python 3 from python.org but the error persists because node-gyp looks for 'python' not 'python3'. You set the environment variable PYTHON to the python.exe path, but then hit 'gyp ERR\! find VS' because you don't have Visual Studio installed. You realize that native Node.js modules need a C\+\+ compiler toolchain. You download Visual Studio Build Tools 2022 and select the 'Desktop development with C\+\+' workload. After installation, you run 'npm config set msvs\_version 2022' and 'npm config set python python3'. The install now works because node-gyp can locate the MSBuild.exe and Python to compile the native addon.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:22:21.033357+00:00— report_created — created