缺失xcrun位置:/Library/Developer/CommandLineTools/usr/bin/xcrun 复制nvm repo失败。

26 浏览
0 Comments

缺失xcrun位置:/Library/Developer/CommandLineTools/usr/bin/xcrun 复制nvm repo失败。

**

curl -o-

https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh |

bash

**

当我在我的Mac上运行这个代码时,我得到了一个错误。

crun: error: invalid active developer path

(/Library/Developer/CommandLineTools), missing xcrun at:

/Library/Developer/CommandLineTools/usr/bin/xcrun Failed to clone nvm

repo. Please report this!

如何解决此问题?

admin 更改状态以发布 2023年5月21日
0
0 Comments

\n\n我通过重新安装Xcode解决了这个问题。

0
0 Comments

我通过打开终端并运行以下命令解决了这个问题:

xcode-select --install

0