Flutter在Windows环境变量中安装 [英] Flutter install in windows environment variable
问题描述
尝试在我的桌面上先安装Flutter时出现问题,出现错误:
I have problem when trying to install the flutter in my desktop first I get error of :
未被识别为内部或外部命令可操作程序或批处理文件.
is not recognized as an internal or external command operable program or batch file.
然后,我打开系统环境变量,并将flutter添加到用户变量路径中,再将所有flutter,git,system32添加到系统变量path部分中.
Then I open the system environment variable and add the flutter to the user variables path plus I add all of the flutter, git, system32 to systems variables path section.
不幸的是,即使重新启动,问题仍然存在.
Unfortunately, the problem is still present even with a restart.
现在,当我在命令提示符下键入flutter doctor时,未显示任何结果,并且我无法写多余的行.
Now when I type flutter doctor to Command prompt No results are shown and I cannot write an extra line.
推荐答案
欢迎使用堆栈溢出!
您应该执行以下步骤:
- 通过快捷方式
(WINDOWS_KEY + R_KEY)
打开RUN - 键入RUN
SystemPropertiesAdvanced
. - 应该出现系统属性"对话框,单击"
环境变量
". - 在用户变量"(顶部"部分)中,选择"
路径
",然后单击编辑". - 将新路径添加到flutter Binary文件夹中,例如
C:\ flutter \ bin
. - 选择确定",然后在环境变量"中再次选择确定",然后在系统属性"中选择确定".
- 关闭您使用的所有命令提示符,然后重新启动系统.
- Hooray,:D颤振现在已成功安装.
- Open RUN by shortcut
(WINDOWS_KEY+R_KEY)
- Type in RUN
SystemPropertiesAdvanced
. - System Properties dialog should appear, click
Environment Variables
. - In User variables (The Top section) select
Path
and click Edit. - Add the new path to flutter Binary folder like this
C:\flutter\bin
. - Select OK, and OK again in Environment Variables, and OK in System Properties.
- Close any Command prompt you using and reboot the system.
- Hooray, :D now flutter is successfully installed.
这篇关于Flutter在Windows环境变量中安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!