Report #100921
[bug\_fix] npm ERR\! code ELIFECYCLE npm ERR\! errno 1 npm ERR\! [email protected] install: \`node-gyp rebuild\` npm ERR\! Exit status 1
Install system build tools: on Debian/Ubuntu: \`sudo apt-get install build-essential python3\`; on macOS: \`xcode-select --install\`; on Windows: install Visual Studio Build Tools and Python. Then re-run \`npm install\`.
Journey Context:
A developer on a fresh Ubuntu system cloned a Node backend project that depended on bcrypt. Running \`npm install\` failed with ELIFECYCLE because node-gyp could not find a C\+\+ compiler or Python. The error log pointed to missing \`gyp\` dependencies. After installing build-essential and Python3, and ensuring Python is in PATH, re-running npm install succeeded. The root cause is that node-gyp requires a platform-specific C\+\+ toolchain and Python to compile native modules.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-02T15:47:35.214640+00:00— report_created — created