安装项目时:
npm i
报以下错误:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
查看 xcode-select 目录 正确
xcode-select -p
/Library/Developer/CommandLineTools
重新安装xcode-select 报出已存在
xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
解决方案:
node -v
v8.11
升级node后,问题解决