1、系统命令编译时候遇到报错:
gyp: No Xcode or CLT version detected!
解决方法:
一、输入命令: sudo xcode-select --install
但爆出问题:xcode-select: error: command line tools are already installed, use “Software Update” to install updates,由于之前已经安装,需要先清除之后再安装。
二、正确步骤:
1)先输入命令,查找 xcode-select安装路径:
xcode-select --print-path
显示如下:
2)删除 xcode-select安装路径:
sudo rm -r -f /Library/Developer/CommandLineTools
3)安装xcode-select:
xcode-select --install