Flutter在Windows环境变量中安装 [英] Flutter install in windows environment variable

查看:63
本文介绍了Flutter在Windows环境变量中安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在我的桌面上先安装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.

推荐答案

欢迎使用堆栈溢出

您应该执行以下步骤:

  1. 通过快捷方式(WINDOWS_KEY + R_KEY)
  2. 打开RUN
  3. 键入RUN SystemPropertiesAdvanced .
  4. 应该出现系统属性"对话框,单击"环境变量".
  5. 在用户变量"(顶部"部分)中,选择"路径",然后单击编辑".
  6. 将新路径添加到flutter Binary文件夹中,例如 C:\ flutter \ bin .
  7. 选择确定",然后在环境变量"中再次选择确定",然后在系统属性"中选择确定".
  8. 关闭您使用的所有命令提示符,然后重新启动系统.
  9. Hooray,:D颤振现在已成功安装.
  1. Open RUN by shortcut (WINDOWS_KEY+R_KEY)
  2. Type in RUN SystemPropertiesAdvanced.
  3. System Properties dialog should appear, click Environment Variables.
  4. In User variables (The Top section) select Path and click Edit.
  5. Add the new path to flutter Binary folder like this C:\flutter\bin.
  6. Select OK, and OK again in Environment Variables, and OK in System Properties.
  7. Close any Command prompt you using and reboot the system.
  8. Hooray, :D now flutter is successfully installed.

这篇关于Flutter在Windows环境变量中安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆