node-gyp: gyp ERR! find Python / gyp ERR! find VS failed to compile C++ addon
gyp ERR! find Python - Python is not set from command line or npm configuration. gyp ERR! find VS - msvs_version not set from command line or npm configuration.
Immediate Remediation
typescript
Install Windows build tools (`npm install --global --production windows-build-tools`) or python3 and build-essential on Linux (`apt-get install -y build-essential python3`).
Root Cause Analysis
Encountered in Node.js / npm when standard runtime constraints or configuration contracts are breached.
Verification & Guardrails
- Verified in production environments by TraceResolve SRE.
- Requires clean rebuild or service reload to take full effect.
Have a custom or uncategorized crash?
Run your trace through our in-memory client privacy sandbox for instant SRE remediation.