Report #44731
[bug\_fix] gyp ERR\! find VS could not find Visual Studio installation / gyp ERR\! find Python Python is not installed
Install platform build tools: on Windows, install Visual Studio Build Tools with 'Desktop development with C\+\+' workload; on macOS, \`xcode-select --install\`; on Linux, \`sudo apt-get install build-essential python3\`. Root cause: Native C\+\+ addons must be compiled against Node's V8 headers using node-gyp, requiring Python 3 and a C\+\+ compiler toolchain.
Journey Context:
Developer clones a project using \`bcrypt\` for password hashing or \`sharp\` for image processing. Running \`npm install\` begins compiling native code. On Windows, the process fails with "could not find Visual Studio installation". Developer has Visual Studio Code but not the Build Tools. They search and find the node-gyp documentation requiring "Desktop development with C\+\+" workload. After a 4GB download and install, \`npm rebuild\` succeeds. On macOS, the error mentions "gyp: No Xcode or CLT version detected" after a macOS update removed CLI tools. Running \`xcode-select --install\` resolves it. On Linux \(Alpine Docker\), the error is "make not found", requiring \`apk add --no-cache python3 make g\+\+\` in the Dockerfile.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:33:00.183971+00:00— report_created — created