Installation notes for [node-gyp on] macOS Catalina

Screenshot of “Installation notes for [node-gyp on] macOS Catalina”

I was confronted with this error at least once a month for several months (once again yesterday) when trying to npm install a freshly checked out Node.js project:

gyp: No Xcode or CLT version detected!

So I guess I should share the link to the official tutorial that helped me fix the issue, every time. I still don't know why this error comes back regularly, but at least now I know how to fix it pretty fast. 👍

And I know I'm not alone, with more than 40.000 results in Google for the error message… 🤷‍♂️

  1. How I build my SVG sprites

    I'm using an SVG sprite on this site to make sure I don't repeat SVG code for icons that are used multiple times, and I inline it so the rendering doesn't depend on another resource loading. Here's how I build this sprite from individual SVG icons.