Report #104693
[bug\_fix] npm ERR\! code ELIFECYCLE npm ERR\! errno 1 npm ERR\! node-gyp rebuild npm ERR\! gyp: No Xcode or CLT version detected\!
Install Xcode Command Line Tools by running \`xcode-select --install\` in the terminal, then retry \`npm install\`.
Journey Context:
A developer on macOS Sonoma tried to install a native Node.js addon \(e.g., \`bcrypt\` or \`sharp\`\) via npm. The install failed with an ELIFECYCLE error pointing to node-gyp failing because Xcode Command Line Tools were missing. The developer had recently updated macOS and the tools were removed. After searching, they ran \`xcode-select --install\`, which prompted a GUI installer. Once installed, they ran \`npm install\` again, and the build succeeded. The environment was Node 20.10.0, npm 10.2.3, macOS Sonoma 14.1.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-09-27T20:10:44.383664+00:00— report_created — created