简体   繁体   中英

Flutter command not found / flutter doctor

What I've tried: Adding/ editing the.bash_profile.rtf file to where the flutter SDK is contained.. export PATH=/Users/temur/Documents/Projects/Flutter/tools/flutter/bin:$PATH

after this, I try to run flutter doctor on terminal I get command not found.

even in the path.

Now, if I just copy+ paste the above command in terminal, it works. Though, it only works until the terminal is exited.

Any way for terminal to read the bash profile file?

Figured it out; entered command: echo $PATH

spit out; /Users/temur/Projects/Flutter/tools/flutter/bin :/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Apple/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands

which was different than the one that should be in my.bash_profile

/Users/temur/Documents/Projects/Flutter/tools/flutter/bin

Had to change this in my bash profile file.

Also, reverting my terminal to bash from zsh helped.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM