zsh: command not found: flutter

I am trying to create an app in flutter and I have extracted flutter SDK on my system as per the documentation but when I ran the command - flutter in terminal it shows the message - zsh: command not found: flutter.

I also have added PATH to my bash file.

1 Answers

To run the flutter command after installation you need to add this to your environment variable. 1. Open your zsh terminal and run below command 2. vim $HOME/.zshrc 3. Press "I" key on the keyboard to activate insert mode in vim. 4. Add below line in the file: 5. export PATH="$PATH:/REPLACE_THIS_PATH/flutter/bin" 6. Press "Esc" then write :wq! in terminal and press enter to exit vim. 7. Now open terminal and run command - flutter doctor

Never leave your website again in search of code snippets by installing our chrome extension.