Flutter install in windows environment variable

China☆狼群 提交于 2021-02-11 04:59:58

问题


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.

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.

Now when I type flutter doctor to Command prompt No results are shown and I cannot write an extra line.


回答1:


Welcome to stackoverflow!

You should take these steps:

  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.


来源:https://stackoverflow.com/questions/60212125/flutter-install-in-windows-environment-variable

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!