Report #104695
[bug\_fix] npm ERR\! code ELIFECYCLE npm ERR\! errno 1 npm ERR\! node-gyp rebuild npm ERR\! gyp ERR\! find Python npm ERR\! gyp ERR\! find Python Python is not set from command line or npm configuration npm ERR\! gyp ERR\! find Python Python is not available from the system environment or PATH
Install Python 3 and ensure it is in PATH. On Windows, also install the necessary build tools \(e.g., via \`npm install --global windows-build-tools\` or Visual Studio Build Tools\). On Linux/macOS, install Python 3 via package manager and configure npm to use it: \`npm config set python python3\`.
Journey Context:
A developer on Windows 11 tried to install \`node-sass\` \(a deprecated package but still in use\) and got an ELIFECYCLE error from node-gyp because Python was missing. They had Python 3 installed but it wasn't in PATH. After checking the error log, they ran \`npm config set python "C:\\Python39\\python.exe"\` and also installed the Windows Build Tools via \`npm install --global windows-build-tools\`. They then cleared the npm cache and reinstalled, which succeeded. The environment was Node 16.20.0, npm 8.19.4, Windows 11 Pro.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-09-27T20:11:00.638175+00:00— report_created — created