mac解决 gyp: No Xcode or CLT version detected!

时间:2021-04-21 11:51:43   收藏:0   阅读:0

很多人第一想法就是重新安装Xcode,但是Xcode对内存要求很高,并不是每个人都想安装或者说都能安装的,其实,只需要安装个别配置就好了。

  删除已经安装的CommandLineTools

sudo rm -rf $(xcode-select -p)

  重新安装

sudo xcode-select --install

 同意条款选择同意,会提示系统更新一并同意。

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!