Veer Pratap
Veer Pratap

Reputation: 295

brew command line mac is not working without following steps

i have to follow these steps every time: in order to use brew command in terminal,

  1. Copy and paste the first line on the same terminal window, then hit enter

    echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/$USER/.zprofile
    
  2. Then Copy and paste the last line on the same terminal window, then hit enter

    eval $(/opt/homebrew/bin/brew shellenv)
    [3:04 PM]
    

Is it possible to use brew command without these steps?

Upvotes: 1

Views: 3297

Answers (1)

pitumalkani
pitumalkani

Reputation: 127

You can follow below steps to solve this issue:

  1. brew install eval
  2. echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/$USER/.zprofile eval $(/opt/homebrew/bin/brew shellenv)
  3. eval $(/opt/homebrew/bin/brew shellenv)

This should work.

Upvotes: 1

Related Questions