尝试运行Flutter版本命令时出现错误

时间:2020-06-10 10:26:36

标签: flutter

我在编码方面完全没有经验,我正在尝试安装flutter。当我在终端中运行“ flutter version”命令时,出现以下错误消息:

 "xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Unable to get the tags. This is likely due to an internal git error.
Error: ProcessException: Process exited abnormally:
xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
Command: git tag -l *.*.* --sort=-creatordate."

我该如何解决?

0 个答案:

没有答案