在以下位置缺少 xcrun:/Library/Developer/CommandLineTools/usr/bin/xcrun 无法克隆 nvm 存储库

arp*_*n45 9 terminal curl xcrun nvm

**

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | 猛击

**

当我在 Mac 上运行此代码时出现错误

crun: 错误: 无效的活动开发者路径 (/Library/Developer/CommandLineTools),在以下位置缺少 xcrun:/Library/Developer/CommandLineTools/usr/bin/xcrun 无法克隆 nvm 存储库。请举报这个!

如何解决这个问题?

小智 23

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

xcode-select --install
Run Code Online (Sandbox Code Playgroud)


arp*_*n45 6

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