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/)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM