0%

solution to gyp no xcode dected

When installing hexo tweaks,some of you might meet:

gyp: No Xcode or CLT version detected!

It’s easy to solve the problem.

In most cases, we can solve it by doing this:

1
sudo xcode-select --install

OK, solved.

but some of you might meet this:

1
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

OK, Let’s delete them by doing this.

1
2
rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

Then you solve the problem.

本文标题:solution to gyp no xcode dected

文章作者:DY

发布时间:2020年02月08日 - 22:02

最后更新:2020年02月23日 - 20:02

原始链接:https://hzdy.github.io/solution%20to%20gyp%20no%20xcode%20dected.html

许可协议: 署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。