
Flutter Installation on Mac 🧑💻 — zsh: command not found: flutter, how to solve this easily.
Hi guys🤓🤓, if you are trying to install flutter on your mac and you’ve come across this problem zsh: command not found: flutter
, you probably saw a bunch of stackoverflow answers but non is yielding a perfect solution, then you’d want to try this. Trust me.
So first things first, you’ve downloaded flutter in your Mac, you’ve gotten the path, all you want to do is make it global, just so that you can access flutter anywhere on your mac.
Step 1
Copy this (this is on the flutter installation web page)
export PATH="$PATH:`pwd`/flutter/bin"
Step 2
For “carefulness” sakes, open your note app and paste in a new note page

Step 3
Now, locate where flutter is downloaded in your computer, I have located mine, then I’ll right click and click get info

Step 4
In the Get Info Dialog, highlight the Where: value and copy it

Step 5
Next go back to your note app, in the new note you created and paste the copied path where you have pwd

Step 6
Next open your Terminal, type flutter
in your terminal and notice you get the flutter not found error, what you’ll do now is type:
vim ~/.zshrc
Then a vim window opens in the terminal just like what you have below

So now as you can see in my vim I already have my path situated here, in yours, it might be empty all you have to do now is go to the note you created, copy the content, then come over to your vim terminal, press i
this will make the vim editable now press command V
to paste. After pasting type :wq
or :wq!
and press Enter.
Now you are back in your terminal type flutter
and Wallah!!!!👍👍👍😄😄
If you still have any challenges, feel free to hit me up on a direct chat on my Twitter or Github. Or just simple drop a comment here. Remember to follow on all platforms for more on Dart and me. See yah!!✌️