Report #50485
[bug\_fix] gyp ERR\! find Python checking if Python is in the PATH... gyp ERR\! find Python - version is not supported or gyp ERR\! find VS could not find any version of Visual Studio to install or error MSB4019: The imported project "C:\\Microsoft.Cpp.Default.props" was not found
On Windows: Install Visual Studio Build Tools with "Desktop development with C\+\+" workload and run \`npm config set msvs\_version 2022\`, or use \`npm install --global windows-build-tools\` \(legacy\). On macOS: Install Xcode Command Line Tools with \`xcode-select --install\`. Root cause: Native Node.js addons \(C/C\+\+\) require compilation against Node's V8 ABI, needing Python \(for GYP build system\) and a C\+\+ compiler toolchain.
Journey Context:
Developer on Windows clones a project using \`bcrypt\` or \`sharp\`, runs \`npm install\`, and sees a wall of MSBuild errors about missing \`VCTargetsPath\` or Python not found. They install Python from python.org but gyp still fails because it needs the Windows build tools. They try \`npm install --global windows-build-tools\` but it hangs on PowerShell. Eventually they install Visual Studio Build Tools 2022, run \`npm config set msvs\_version 2022\`, and the native module compiles. They learn that native modules are platform-specific binaries requiring system-level compilers, not pure JavaScript.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:13:31.761172+00:00— report_created — created