问题
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:
- 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.
来源:https://stackoverflow.com/questions/60212125/flutter-install-in-windows-environment-variable