A
A
artemis0182021-02-14 18:15:35
macOS
artemis018, 2021-02-14 18:15:35

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

2 answer(s)
B
Bolide9, 2021-02-14
@bolide9

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

A
artemis018, 2021-02-15
@artemis018

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 question

Ask a Question

731 491 924 answers to any question