安装 electron 项目时候的报错

xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance

解决方案:

1
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer