Flutter opened and moved to developer folder. I haven't had any luck updating the flutter path in the terniaml. It fails to open flutter
I enter the info posted on the flutter website and replace the path with my info on where the flutter folder is located on my computer. i run, source $HOME/.. Then a error code comes back. If i run,
echo $PATH
then it comes back flutter not detected.
CodePudding user response:
According to the installing Flutter documentation, you should put the downloaded folder in the development
folder, not the developer
folder. Try moving the downloaded folder to the development
folder.
CodePudding user response:
If you are unable to update the path via the terminal. Just do it manually.
Steps to manually update the path:
- Since you already know you have a zsh terminal. Go to /Users/[your username]. Unhide the files by hitting [cmd shift .].
- If you don't have a .zshrc file. Just create a new file. You can download my .zshrc file from here: .zshrc file
- open it in TextEdit and write this
export PATH="$PATH:/Users/syedsadiquh/Development/SDKs/flutter/bin"
After the $PATH: just replace it with your own flutter/bin location. - Now close all terminal windows to source the new file automatically.
Now verify your path by running echo $PATH
Now verify that flutter is available by running which flutter
.
The official flutter docs to refer (see update your path section): Official flutter docs