我想检查Flutter SDK是否在我的Windows命令提示符下运行。但是由于收到一些错误消息,我在命令提示符下运行flutter命令时遇到问题。
我安装了Flutter SDK,并遵循了https://flutter.dev/docs/get-started/install/windows网站上编写的所有说明。当我在命令提示符下运行“ flutter doctor”命令时,错误显示如下:
some_list = []
for l in input:
for l_ in l:
if a in l_:
some_list.append(input.index(l))
else:
pass
location_ = some_list[-1]
print location_
我希望该命令将显示以下结果:
C:\WINDOWS\system32>flutter doctor
Error: The Flutter directory is not a clone of the GitHub project.
The flutter tool requires Git in order to operate properly;
to set up Flutter, run the following command:
git clone -b stable https://github.com/flutter/flutter.git
C:\WINDOWS\system32>