问题1:
The Flutter directory is not a clone of the GitHub project
或在flutter文件夹中,在cmd中运行git init
问题2:
Checking Dart SDK version... 'PowerShell.exe' is not recognized as an internal or external command, operable program or batch file.
给环境变量Path添加配置:
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
问题3:
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
必须要切换到具体的 flutter 目录的 bin 目录,直接:flutter doctor