mac 版本:macOS Catalina 10.15.1
npm install 失败,错误信息与 xcode-select --install
CLT 有关。
⬇️ 以下是常规搜索,对我不起作用
在 https://developer.apple.com/download/more/ 下载 command line developer tools for Xcode 11.5
然后 xcode-select --install
,报错:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
执行
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
>$ xcode-select --install
xcode-select: note: install requested for command line developer tools
⬇️ 以下是解决方案
- 升级 macOs 至最新版,下载 xcode
https://dev.to/elanandkumar/fix-macos-catalina-and-commandlinetools-issue-2m13
https://stackoverflow.com/questions/34617452/how-to-update-xcode-from-command-line
网友评论