2. Install Hugo (Mac) โฌ‡

Jun 2, 2021 08:08 ยท 256 words ยท 2 minute read
โ† 1. Start Here 3. Create a new Hugo Project โ†’

To install Git on your Mac, you will need to first install Homebrew!

Install a Package Manager (if you don’t have one already) ๐Ÿ”—

We will use Homebrew , a Package Manager, to assist in downloading Git and Hugo on our system.

homebrew

1. Open up the macOS Terminal or Linux shell prompt

2. Then, copy-paste the following command and press enter

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

3. The script will run and may request your device’s login password

  • Type your password even though you don’t see anything being typed onto the Terminal/Shell, then press enter

4. You will get a “Installation successful!” message once Homebrew has completed and successfully been installed.

๐Ÿ’ก Homebrew is a Package Manager. Package managers allow you to download and install certain programs or tools easily using commands in a MacOS Terminal or Linux Prompt Shell. For example, NuGet is for downloading packages/libraries easily into VS. This is a similar concept where you can download some programs/tools using the command line.

Install Git ๐Ÿ”—

You can confirm you have Git installed by entering the git command and seeing Git commands printed out.

If not, enter brew install git within the Terminal or Shell Prompt.

Install Hugo ๐Ÿ”—

We can now install Hugo by entering brew install hugo on our Terminal or Shell Prompt

Enter hugo help to confirm Hugo is installed. You will get a bunch of Hugo flags and commands printed out.

โ† 1. Start Here 3. Create a new Hugo Project โ†’