Ritish Kannayagari
Ritish Kannayagari

Reputation: 13

Flutter not found error on macOS though ive set up path variable in bash_profile

I tried installing flutter on my macOS, but whenever i run flutter command on terminal it says flutter not found. Ive extracted the Flutter SDK in Application folder and ive added the path in .bash_profile. still it did not work. Attaching the Bash file and terminal screenshots here.

Path which i added is - export PATH="/Users/ritishkannayagari/Applications/flutter/bin:$PATH"

Upvotes: 0

Views: 450

Answers (1)

Augustin R
Augustin R

Reputation: 7799

You are using zsh in your terminal. You can either :

  • switch to bash in your terminal :

Terminal > Preferences > Shells open with: /bin/bash


  • keep zsh and add flutter PATH to ~/.zshrc
echo 'export PATH="$HOME/Applications/flutter/bin:$PATH"' >> ~/.zshrc

Then restart Terminal


  • keep zsh add source ~/.bash-profile in your ~/.zshrc
echo 'source ~/.bash-profile' >> ~/.zshrc

Upvotes: 1

Related Questions