
For those of you who don’t know what Node-gyp is: What prompted me to write this post, is after a recent macOS upgrade, I was getting errors trying to install a Node.js package that used Node-gyp. It should be, but the crux of the matter, is that running xcode-select -install is meant to fix these compilation issues, but often, it doesn’t, as it will tell you it already exists, and the OS doesn’t know what to do beyond that. Why xcode-select -install is sometimes not enough In particular, package managers for various languages will start failing because they are unable to compile software as part of installing or upgrading third-party dependencies. The problem is that sometimes after a major OS version upgrade, things don’t work so well. The macOS Command Line Tools were a welcome change for macOS users that previously had to install the entire Xcode application just to be able to compile software on their machine.
