Node_gyp failing during discovery-cli install

From @Lim (Enigma Discord)

I’m on MacOS Catalina. I’ve checked that forum post but actually i’m having a different error. I’m using node version 11.5.0 as specified in the README on the github repository for the tutorial.

it fails on “node-gyp rebuild” command

during the discovery-cli installation process

Adding a note on how @Lim resolved this:

I’ve managed to let it work with node v11.5.0 but only after reinstalling it with nvm and also i had to reinstall x-code