==> Next steps:
- Run these commands in your terminal to add Homebrew to your PATH:
echo >> /Users/frankmoffatt/.zprofile
echo ‘eval “$(/opt/homebrew/bin/brew shellenv)”’ >> /Users/frankmoffatt/.zprofile
eval “$(/opt/homebrew/bin/brew shellenv)”
frankmoffatt@Franks-MacBook-Air ~ % brew install exercism
zsh: command not found: brew
Hi!
I looks like you are missing homebrew on your machine, you should install it first. Here are some tips what to check:
- Did you install homebrew? Specifically run the command from https://brew.sh/ ?
- Did you add brew to PATH?
- Did you restart your terminal before trying to use brew and installing exercism?
I am not sure but I tired to find out—looks like not
MacBook-Air ~ % bash
The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh
.
For more details, please visit Use zsh as the default shell on your Mac - Apple Support.
bash-3.2$ brew --version
bash: brew: command not found
bash-3.2$
Look like I have it now:
==> /usr/bin/sudo /usr/sbin/chown -R frankmoffatt:admin /opt/homebrew
==> Downloading and installing Homebrew…
remote: Enumerating objects: 355, done.
remote: Counting objects: 100% (70/70), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 355 (delta 51), reused 37 (delta 37), pack-reused 285 (from 3)
==> Updating Homebrew…
Updated 2 taps (homebrew/core and homebrew/cask).
Warning: /opt/homebrew/bin is not in your PATH.
Instructions on how to configure your shell for Homebrew
can be found in the ‘Next steps’ section below.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
I am totally confused. When I restarted terminal I got the following:
Last login: Sat Mar 29 08:20:36 on ttys000
frankmoffatt@Franks-MacBook-Air ~ % bash brew --version
bash: brew: No such file or directory
frankmoffatt@Franks-MacBook-Air ~ %
IsaacG
6
Did you follow those steps? You may need to use something like /opt/homebrew/bin/brew
to run brew until you update your PATH.