**
curl o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh bash
**
当我在我的Mac上运行这个代码时,我得到了一个错误
/Library/Developer/CommandLineTools/usr/bin/xcrun crun: error: active developer路径无效(/Library/Developer/CommandLineTools),缺少xcrun:
未能克隆nvm。请报告这个!
怎么解决这个问题?
发布于 2019-10-10 17:46:36
我通过重新安装Xcode解决了这个问题。
发布于 2019-10-13 06:24:12
我通过打开终端并运行命令解决了这个问题:
xcode-select --install发布于 2021-12-19 20:18:54
打开xcode和goto preferences>Locations。确保安装了命令行工具。
这似乎纠正了我的问题(为其他人所描述的)。我已经安装了xcode,并且在我的苹果python3 python3 M1(mac )蒙特利上安装一个-m psutil (python3 -m)时,也遇到了类似的错误:
/Library/Developer/CommandLineTools/usr/bin/xcrun:
xcrun: error: active developer路径无效(/Library/Developer/CommandLineTools),缺少:
错误:命令'/usr/bin/clang‘失败,退出代码1
https://stackoverflow.com/questions/58308715
复制相似问题