npm install 提示 `gyp: No Xcode or CLT version detected!` MacOS 10.15

Posted li1234yun

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm install 提示 `gyp: No Xcode or CLT version detected!` MacOS 10.15相关的知识,希望对你有一定的参考价值。

https://github.com/nodejs/node-gyp/issues/569

https://github.com/nodejs/node-gyp/issues/1927
解决链接:https://github.com/nodejs/node-gyp/issues/1927#issuecomment-565633977

到苹果开发者下载中心下载对应软件

Sharing a new solution that worked for me.
NONE of the above solutions worked, (including macOS_Catalina.d) I tried all of them several times, even reinstalling XCode from the App Store.
Download the appropriate version of the "Command Line Tools for Xcode" for your version of Xcode from developer.apple.com/download

As of MacOS 10.15.2, that's 11.3: [Command_Line_Tools_for_Xcode_11.3.dmg](https://developer.apple.com/download/more/)

以上是关于npm install 提示 `gyp: No Xcode or CLT version detected!` MacOS 10.15的主要内容,如果未能解决你的问题,请参考以下文章

npm install报gyp info it worked if it ends with ok

window环境下npm install node-sass报错

npm install时node-gyp报错

由于 node-gyp,Npm install 未安装

Electron npm install 常见错误(Windows)

npm install 时卡在了node-gyp rebuild