0

I know there are many similar answers to this however I have checked them, watched a video on it and tried countless times. I exported the flutter path to the .bashprofile and it is saved as shown in the screenshot however if I close terminal and try using a flutter command like flutter --version or which flutter or even flutter doctor I get flutter not found or zsh: command not found: flutter

How do I fix this so I can permanently use flutter in any directory or path

terminal Picture

terminal Picture 2

Mobina
  • 5,126
  • 2
  • 16
  • 30
SpacedOutKID
  • 55
  • 1
  • 12

1 Answers1

1

You're adding the path to .bash_profile but the error says zsh: command not found: flutter.

Look closely at the error, your default shell is zsh and not bash. So adding the path to .bash_profile doesn't help since the path is being looked up for in .zshrc instead.

Here's how you can add the path to .zshrc instead: https://stackoverflow.com/a/11530176/5066615

Rohan Taneja
  • 7,779
  • 2
  • 27
  • 38