Flutter command not found

前端 未结 30 1327
独厮守ぢ
独厮守ぢ 2020-11-29 16:54
bash: flutter: command not found

Apparently, none of the flutter commands are working on the terminal of an android studio which I believe I am tryi

30条回答
  •  無奈伤痛
    2020-11-29 17:15

    Mac OS Mojave; Wireshark Path problem

    As I can't comment, I'm answering:

    In your terminal, run:

    touch $HOME/.bash_profile
    
    vi $HOME/.bash_profile
    

    Now use I to insert and paste the following:

    export PATH="$PATH:$HOME:/PATH_TO_FLUTTER_GIT_DIRECTORY/flutter/bin"
    

    Use esc and type :wq! to save the file and exit.

    Refresh:

    source $HOME/.bash_profile
    

    And verify it's OK by running:

    echo $PATH
    

提交回复
热议问题