I am trying to permanently add flutter to my PATH. I will tell you what I previously did. So I unzipped the MacOS version in my user folder. Then I went into my .bash-profile and added export PATH:/Users/kayajones/flutter/bin:$PATH. Saved that quit out of the terminal completely and when I type flutter I get the "env: bash: No such file or directory". I also tried deleting flutter and reinstalling and doing the steps over again. Still no luck, I've been stuck on this all day. The setup process is a pain. Sorry in advance i dont have a high enough reputation to be adding in images. bash error
3 Answers
- First, make sure you got the path right.
- Then try adding
export PATH="$PATH:/Users/kayajones/flutter/bin"to your .bash-profile file. - Then exit the terminal and restart it.
- Then run
source .bash-profile
9 Comments
sidrao2006
The command source is used to run bash config files
sidrao2006
It once happened with me too. This usually happens due to one of the lines .bash-profile. Now, you have to edit .bash-profile manually using a text editor and find out the error blocking resource
sidrao2006
I have updated the answer, try it, if it doesn't work then try removing the '/' before 'Users'
|

export PATH="/Users/kayajones/flutter/bin:$PATH"-- note the equal sign and double-quotes.