skip to Main Content

I installed Android Studio on my computer to develop my flutter and dart project.

enter image description here

However, I downloaded the flutter folder for macos silicon from the flutter site and added it to a folder named "yusa".

enter image description here

I exported many file paths with the "nano .zshrc" command, but no matter what I do, when I type "flutter" or "flutter doctor" into the terminal, "zsh: command not found: flutter".

enter image description here

I get an error. My computer does not recognize flutter.

My problem has been going on for days and I need your help.

Thank you all in advance.

2

Answers


  1. Chosen as BEST ANSWER

    I solved the problem.

    My .zshrc path was as follows:

    ZSH_THEME="yusa"
    export PATH=/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr$
    
    export PATH="$PATH:/Users/yusa/development/flutter/bin"
    

    I asked the AI ​​to edit it correctly for me. He suggested me to edit it like this and my problem was solved.

    ZSH_THEME="yusa"
    export PATH="/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/Users/yusa/development/flutter/bin:$PATH"
    

  2. I have had the same issue once. I ended up solving it by making a symlink to the /Users/myusername/flutter/bin/flutter in the binary directory. In your case:

    ln -s /Users/yusa/flutter/bin/flutter /Users/yusa/bin/flutter
    ln -s /Users/yusa/flutter/bin/dart /Users/yusa/bin/dart
    

    It’s far from perfect, but it works. Besides, the actual flutter/bin directory only contains two executables: flutter and dart.

    Hope this helps!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search