本文介绍了颤振医生不适用于命令提示符或 PowerShell 窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

flutter doctor 在命令提示符或 PowerShell 窗口中都不起作用?我一直在尝试在 Windows 上安装颤振.我已经克隆了教程中提到的 Flutter SDK.我已将 git 和颤振添加到我的路径中.但是当我尝试运行 flutter doctor 时,命令提示符回复如下:

'where' 未被识别为内部或外部命令可运行程序或批处理文件.错误:无法在您的路径中找到 git


检查 cmd 图像你会发现问题

解决方案

要在 Windows 系统的命令提示符下运行 Flutter,需要三件事

  1. 重新启动命令提示符并尝试运行颤振和瞧!你应该得到这样的东西

    flutter doctor doesn't work on either Command Prompt or PowerShell window?I have been trying to install flutter on windows. I have cloned the Flutter SDK as mentioned in the tutorial. I have added git and the flutter to my path. But still when I try to run the flutter doctor the command prompt reply with this:

    'where' is not recognized as an internal or external command operable program or batch file.
    Error: Unable to find git in your path
    


    check the cmd image you will see exactly the problem

    解决方案

    to run flutter from the command prompt on your windows system it requires three things

    1. path to the bin folder of downloaded flutter sdkI have downloaded and saved the sdk in my documents so for me path will be

    C:Usersmahesh_2Documentsflutter_windows_v0.11.9-betaflutterin

    1. where.exe located at C:WindowsSystem32

    Note:you need to download git from here if you dont find path in step 3

    1. git-cmd.exe located in C:Program FilesGitgit-cmd.exe

    so to simply add these three paths to your environment variablesgo to system environment variableswith variable name as Path

    and value as

    C:WindowsSystem32;C:Program FilesGitgit-cmd.exe;C:Usersmahesh_2Documentsflutter_windows_v0.11.9-betaflutterin

    restart the command prompt and try running flutter and Voila! you should get something like this

    这篇关于颤振医生不适用于命令提示符或 PowerShell 窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 19:22
查看更多