Bacancy Technology
Bacancy Technology represents the connected world, offering innovative and customer-centric information technology experiences, enabling Enterprises, Associates and the Society to Rise™.
12+
Countries where we have happy customers
1050+
Agile enabled employees
06
World wide offices
12+
Years of Experience
05
Agile Coaches
14
Certified Scrum Masters
1000+
Clients projects
1458
Happy customers
Artificial Intelligence
Machine Learning
Salesforce
Microsoft
SAP
March 19, 2024
zsh: command not found: flutter usually indicates that the flutter path is not mentioned in .zshrc file. This issue commonly happens when you upgrade macOS and try to run any flutter command from the terminal. We also face this issue when you install android studio and set flutter SDK path to it first time and try to run any flutter command from terminal.
We can solve this issue by following two types of approaches.
1. Adding flutter SDK path from terminal.
2. Manually adding flutter SDK path to .zshrc file.
– Open a terminal and hit the following command.
vim $HOME/.zshrc
– Now it will open a file in terminal and show its content.
– Press the i key to enable insert mode, then you can add a flutter sdk path.
Format: export PATH=”$PATH:/YOUR_FLUTTER_DIR/flutter/bin”
Example: export PATH=”$PATH:/Users/Rohan/Flutter/flutter-3.10.0/flutter/bin”
– Press “Esc” and write :wq! Then hit enter to save this file.
– Now Reopen the terminal and run flutter –version command.
– Now you are able to run any flutter commands.
– Open the finder and navigate to admin directory.
– Press cmd + shift + . For unhide files.
– Open .zshrc file and add flutter SDK path.
Format: export PATH=”$PATH:/YOUR_FLUTTER_DIR/flutter/bin”
Example: export PATH=”$PATH:/Users/Rohan/Flutter/flutter-3.10.0/flutter/bin”
– Now open the terminal and run flutter –version command.
– Now you are able to run any flutter commands.