zsh: command not found: flutter Oh my zsh p10k - flutter

Trying to run flutter doctor or any other command but I have this prompt
zsh: command not found: flutter
Prior the installation of oh my zsh and p10k, flutter commands were fine. I am in a Mac book air 2020 with M1 and my OS is Monterrey v12.5.1
Thanks!
Edit: Now works, my PATH was incomplete hehe

Related

I have installed the flutter and android studio but still getting the error zsh: command not found: flutter

I have installed the flutter and android studio but still getting the error
tushar#racs-MacBook-Pro ~ % flutter doctor
zsh: command not found: flutter
i was trying to update the envirnmental variable on my macbook by using the "nano ~/.zshrc" command but after adding the same I am not able to run any flutter command on terminal
please help.
First, open the terminal on your mac.
Next, use the command
cat .bash_profile
and copy the content.
Then type this command into the terminal:
nano $ HOME / .zshrc
and paste the content just copied above into. Save then type
source $ HOME / .zshrc
to refresh this file. Next type
echo $ PATH
to see if the content has been updated. If successful type
flutter --version

Flutter Doctor crash

I'm following the instructions to install flutter, it's my first install and I'm being careful not to miss a step. But...
Everything is going well until I try to run flutter doctor. I have updated the path and all is well.
I've edited the .bash_profile adding this line:
export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin"
echo $PATH and which flutter are both correct.
Please see the screenshot attached.
Running on macOS Sierra, version 10.12.6 // Flutter version: flutter_macos_2.0.1-stable
Terminal: Flutter Doctor Crash
EDIT:
I've done what you suggested:
My Mac is running 64-bits OK.
I have installed brew OK
brew install dart with some errors
refresh and run flutter doctor -vwith crash
1)
2)
First, verified if the your mac is 64-bits, click here for know how.
In Mac the Flutter run only in architecture 64-bits;
If the your mac is the 64-bits try install the dart using the Brew;
After install brew, open the terminal and run the command:
brew install dart
Now run the flutter doctor;
So, I found a way around my issue.
As I cannot upgrade my Mac (for now), which I think was part of the problem, I tried to downgrade my Flutter version.
I installed 1.22.0-stable. Now flutter doctor runs OK-ish.
The only thing now is, having a mid-2010 MacOS 10.12.6 (Sierra), not being able to upgrade to (at least) Mojave, I cannot install Xcode 11, which is the minimum version allowed so I can compile on IOS.
Anyway, for now it seems to run fine: Android Studio - Flutter & Dart plugins - Android Simulator.
Although, working on a Mac and not being able to run/work on an IOS app is a bit frustrating, not gonna lie...

flutter doctor command not responding

i am using linux ubunto :
this is output of "echo $PATH":
when i type "flutter doctor", the terminal goes to next line stuck at this point...like i should be writing more...
"flutter doctor":
what am i missing here to get flutter command working ?!
any help would be much appreciated.
Try to re-install flutter SDK, worked for me.

Update path: command not found for Flutter

I updated to Catalina 10.15.6 and my flutter no longer runs. I tried to update my path but have no permissions to do so. flutter worked perfectly fine before the update.
dxxxgxxx#dxxx-MacBook-Pro tools % flutter doctor
zsh: command not found: flutter
dxxxgxxx#dxxx-MacBook-Pro tools % echo $SHELL
/bin/zsh
dxxxgxxx#dxxx-MacBook-Pro tools % $HOME/ .zshrc
zsh: permission denied: /Users/dxxxgxxx/

Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

I am using Linux. When try to run the following in Terminal:
flutter doctor --android-licenses
It's showing me the following error:
flutter: command not found
Run command whereis flutter. If that does not give you path/output then you have not set flutter path correctly.
Add the below line in your ~/.bash_profile file:
export PATH=<this is where you have to put your flutter path >/flutter/bin:$PATH
source ~/.bash_profile
now whereis fluttershould give you the correct path and you wont get
flutter: command not found
Enter this command
flutter doctor --android-licenses
and accept all licenses by entering y
for all the licenses. After that Retype
flutter doctor
You are now Good to go.
I am use IntelIdea and have same problem like another guys.<>, but this command not working if use paste copy, after few hours when i try find the right way to resolve this problem, push, on IntelIdea Tools->Flutter->Flutter Doctor and i see on command line <>. So i copy this row to terminal delete --verbose and write --android-licenses PRESS ENTER. ... O miracle i see the right result "All SDK package licenses accepted"