Report #44040
[bug\_fix] gyp ERR\! find Python gyp ERR\! stack Error: Could not find any Python installation to use gyp ERR\! stack at failPython \(/usr/local/lib/node\_modules/npm/node\_modules/node-gyp/lib/find-python.js:307:47\) gyp ERR\! find VS gyp ERR\! stack Error: Could not find any Visual Studio installation to use
Install 'Visual Studio Build Tools' with the 'Desktop development with C\+\+' workload and Python 3, then configure npm with npm config set msvs\_version 2022 and npm config set python python3. Alternatively, switch to packages that provide prebuilt binaries \(e.g., sass instead of node-sass\).
Journey Context:
Developer on Windows clones a Node.js repository and runs npm install. The install fails while trying to compile native C\+\+ addons \(like bcrypt, sqlite3, or node-sass\) with node-gyp errors about missing Python or Visual Studio. They try installing Python from python.org but the error persists. They realize node-gyp requires specific MSVC\+\+ compiler tools and the windows-build-tools npm package is deprecated. They download Visual Studio Build Tools \(not the full IDE\), select the 'Desktop development with C\+\+' workload, install Python 3, and configure npm to use these with npm config set msvs\_version 2022. The native modules compile successfully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:23:34.193173+00:00— report_created — created