0
Follow
0
View

what is the best Way to add flutter path on mac?

dujingjing2013 注册会员
2023-01-25 13:43

go to your .bash_profile file and add the path to flutter/bin?

For example

export PATH="$PATH:/Users/[my_user_name]/Development/flutter/bin/"
daledale5 注册会员
2023-01-25 13:43

Perhaps go to your .zshrc file and add your path to flutter/bin?

My .zshrc file is located here:

Users/[my_user_name]/.zshrc

Usually, you won't be able to see this file using Finder because it's hidden. In your home directory from Finder hit Cmd + Shift + . to see hidden files. Then you will be able to access them. If that file doesn't exist, create one.

Once you're in that file, add the path to your flutter/bin. In my case, that path looked like this:

export PATH="$PATH:/Users/[my_user_name]/Development/flutter/bin/"

Hope this helps!

anxiaoli520528 注册会员
2023-01-25 13:43

In the flutter documentation:

The solution is what Karolina said, you edit the .zshrc file to be able to use the flutter command for all terminal sessions.

About the Author

Question Info

Publish Time
2023-01-25 13:43
Update Time
2023-01-25 13:43