Install Ruby on MacOS
MacOS comes with already pre-installed system Ruby. However this Ruby, most likely, will be outdated for Shopify development. You don’t want to mess with the pre-installed system Ruby. What you want to do is to install another Ruby using Homebrew and set the $PATH
so the Homebrew-installed Ruby takes priority over the macOS system Ruby.