Brew stops working after terminal session is closed #3459
-
I have installed Brew in MACOS Monterey with the following commands.
I have tested it after the install, and it works, however closing the terminal session and opening it again causes terminal to say that the command brew is not found after running it. I can still see the homebrew directory, so Im guessing its in the wrong place for terminal to run it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Well, it's certainly recommended that you install in the usual spot using the primary install method, but that probably isn't your problem. You need to place the |
Beta Was this translation helpful? Give feedback.
Well, it's certainly recommended that you install in the usual spot using the primary install method, but that probably isn't your problem. You need to place the
eval "$(homebrew/bin/brew shellenv)"
line in your shell profile file (e.g.~/.bash_profile
,~/.profile
, etc). That way, it will be run everytime you start a new shell.