I saw this post
on Stackoverflow. This answer
is mostly correct but it omits lots of details. For example, I don’t have a
.zshrc file in the begining, how do I create it first. After entering
export PATH="/opt/homebrew/bin:$PATH", how do I save and exit?
This post is to help solve this problem.
First of all, open your Terminal. If you don’t have a
.zshrc file, input
.zshrc, copy and past
O, then press
Eenter, then press
Then, in terminal, input
Then, you can check whether
brew in your path variable by
Last modified on 2023-10-03