vue create 报错 gyp: No Xcode or CLT version detected!
解决方案
- 尝试用如下命令进行修复
$ xcode-select --install
- 如果系统提示如下信息时
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
- 以下操作即可解决
$ sudo rm -rf $(xcode-select -print-path)
$ xcode-select --install