What you were trying to do (and why)
Trying to install Homebrew on a Mac with an M2 chip. I wanted to use Homebrew to manage packages and utilities on my Mac.
What happened (include command output)
When trying to install Homebrew, I encountered the following warning message:
Warning: /opt/homebrew/bin is not in your PATH.
~ % brew
zsh: command not found: brew
To resolve this issue, I manually added export PATH=/opt/homebrew/bin:$PATH to my ~/.zshrc file:
What you expected to happen
I expected Homebrew to be installed successfully without any warnings or errors.
Step-by-step reproduction instructions (by running brew commands)
- Attempt to install Homebrew on a Mac with an M2 chip.
- Encounter the warning message:
Warning: /opt/homebrew/bin is not in your PATH.
- Receive the error message:
zsh: command not found: brew.
- Manually add
export PATH=/opt/homebrew/bin:$PATH to ~/.zshrc to resolve the issue.
What you were trying to do (and why)
Trying to install Homebrew on a Mac with an M2 chip. I wanted to use Homebrew to manage packages and utilities on my Mac.
What happened (include command output)
When trying to install Homebrew, I encountered the following warning message:
To resolve this issue, I manually added
export PATH=/opt/homebrew/bin:$PATHto my ~/.zshrc file:What you expected to happen
I expected Homebrew to be installed successfully without any warnings or errors.
Step-by-step reproduction instructions (by running
brewcommands)Warning: /opt/homebrew/bin is not in your PATH.zsh: command not found: brew.export PATH=/opt/homebrew/bin:$PATHto ~/.zshrc to resolve the issue.