Install the Xcode command-line tools (to the internal drive), which can be triggered by running the following command in a terminal:sudo xcode-select --install
This will trigger the installation of the command-line tools and establish the /Library/Developer/CommandLineToolspath and set this as the default developer tools path after installation.