Fixing ‘NPM node-gyp rebuild failed’ on macOS: Missing Compiler, Dev Headers, Python
Resolve common `node-gyp` rebuild failures on macOS by installing Xcode Command Line Tools, Python, and addressing environment path issues for native Node.js modules.