This are the codes of my command line. There are many paths for my flutter SDK to make sure of them is the correct path.
anonymous@guardianOP:~$ echo $PATH
/home/anonymous/Home/Desktop/flutter/bin:/Desktop/Flutter/bin:/home/anonymous/.local/bin:/Desktop/Flutter/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
anonymous@guardianOP:~$ flutter
flutter: command not found
anonymous@guardianOP:~$
This is the code of my bash profile
export PATH=~/Home/Desktop/flutter/bin:$PATH
This is the link to the image of my directory to the flutter SDK
Can you try going to the flutter installation path and try running flutter command to make sure flutter is installed.
I think your file is not executable. You could make it executable with:
chmod u+x /home/anonymous/Home/Desktop/flutter/bin/flutter
Instead of ~/Home/Desktop/flutter/bin
try setting the path as the following:
/home/Desktop/flutter/bin
I believe that the only error you're facing is that you believe Home is your home directory whereas your home directory starts with a small h.
so reiterating.. your bash profile line should read export PATH=~/home/Desktop/flutter/bin:$PATH
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.