I have been working with flutter for a week now and it runs okay, however I can't use commands such as flutter doctor
or flutter upgrade
on my terminal nor Android studio. Whenever I try to run a flutter command I get
zsh: permission denied: /Users/name/flutter/bin
.
I tried adding the source to nano ~/.zshrc and export PATH, but nothing worked.
I faced this issue when setting up Flutter on my new mac, even after setting the PATH correctly. Turns out i installed the wrong SDK (Window). So make sure to install the correct Flutter SDK on your respective OS.
For MacOS : https://docs.flutter.dev/get-started/install/macos
For Window : https://docs.flutter.dev/get-started/install/windows
For Linux : https://docs.flutter.dev/get-started/install/linux
For ChromeOS : https://docs.flutter.dev/get-started/install/chromeos