我从windows 10中的https://flutter.io/setup-windows/(flutter_windows_v0.5.1-beta.zip)下载了Flutter,并遵循指南,在C:\ Users\M中解压缩.Junaid并打开了flutter-console.bat.我试图运行扑医,但得到了以下
Error: The Flutter directory is not a clone of the GitHub project.
The flutter tool requires Git in order to operate properly;
The to set up flutter, run the following command:
git clone -b beta https://github.com/flutter/flutter.git
Run Code Online (Sandbox Code Playgroud)
重新检查正确安装的依赖关系Git和PowerShell以及路径变量也是正确的 - C:\ Users\M.Junaid\flutter\bin
我试过这些但没什么用的:
Bar*_*ker 32
Flutter检查git文件夹,它通常是一个隐藏文件夹.如果您复制并粘贴了zip文件的内容,则很可能错过了复制此隐藏文件夹的错误.
您可以通过执行以下操作之一来解决此问题:
flutter)以包含其中的所有隐藏文件,或Ans*_*rma 10
我通过使用此命令解决了这个问题:
git clone -b beta https://github.com/flutter/flutter.git
Run Code Online (Sandbox Code Playgroud)
(注意:确保安装了git.)
之后,尝试打开flutter_console.bat并键入任何flutter命令以检查它是否正确安装.
小智 7
我用git下载也遇到这个问题。解决方案是将文件夹名称从 .github 更改为 .git 在 Windows 中我执行了以下操作。
rename .github .git
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7438 次 |
| 最近记录: |