坑:打开flutter_console.bat,运行flutter doctor命令就直接闪退,用cmd运行flutter doctor也是直接闪退。
解决:在环境变量->用户变量中找到Path,发现没有配置WindowsPowerShell,那就添加,配置过了可不用重复配置
32位系统: C:\Windows\System32\WindowsPowerShell\v1.0
64位系统: C:\Windows\SysWOW64\WindowsPowerShell\v1.0
坑:打开flutter_console.bat,运行flutter doctor命令就直接闪退,用cmd运行flutter doctor也是直接闪退。
解决:在环境变量->用户变量中找到Path,发现没有配置WindowsPowerShell,那就添加,配置过了可不用重复配置
32位系统: C:\Windows\System32\WindowsPowerShell\v1.0
64位系统: C:\Windows\SysWOW64\WindowsPowerShell\v1.0