Answer the question
In order to leave comments, you need to log in
How to add environment variable for Flutter on MacBook Air M1?
I do everything as in the documentation, but the Flutter Doctor command does not work. But when you create a temporary environment variable with the command export PATH="$PATH:`pwd`/flutter/bin" everything works. Maybe someone faced such a problem? I've tried everything, nothing works ;)
Answer the question
In order to leave comments, you need to log in
instead of export PATH="$PATH:`pwd`/flutter/bin" , it should be: PATH="$PATH:[path]/flutter/bin"
where path is the location of the flutter sdk folder
I solved the problem, added the path not to bash.profile as I did before, but to .zshrc and it worked. Maybe someone can explain the difference between bash.profile and .zshrc. Thanks
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question