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://flutter.dev/docs/development/tools/sdk/releases?tab=macos
For Window : https://flutter.dev/docs/development/tools/sdk/releases?tab=windows
Make sure you've installed the correct SDK for your machine. For me I had installed Flutter's Windows SDK on my Mac machine.
For macOS : https://flutter.dev/docs/development/tools/sdk/releases?tab=macos
For Window: https://flutter.dev/docs/development/tools/sdk/releases?tab=windows
If you added the path and sure that you have downloaded the correct os files and still get the error:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With