terminal opens with ".zprofile:6: no such file or directory: /opt/homebrew/bin/brew"

/Users/sudeepspatil/.zprofile:6: no such file or directory: /opt/homebrew/bin/brew /Users/sudeepspatil/.zprofile:7: no such file or directory: /opt/homebrew/bin/brew


Maybe you need to install Homebrew? To do so, open the Terminal and paste in the command that is provided on the Homebrew website.

Homebrew is a package manager for Mac, and apparently something in your ~/.zprofile file is invoking it. This file contains some configuration for your shell.

If you already have Homebrew and this does not solve it, please update your question with the output of the following command: cat ~/.zprofile. Thanks.