I got the error message when trying to install Matrix-Cli.
npm install -g matrix-cli
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t https://github.com/matrix-io/matrix-app-config-helper.git
npm ERR!
npm ERR! xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
npm ERR!
npm ERR! exited with error code: 1