2. Install Hugo (Windows) ⬇

Jun 2, 2021 09:03 · 233 words · 2 minute read
← 1. Start Here 3. Create a new Hugo Project →

To install Hugo on Windows, you will need to first install a Package Manager.

Install a Package Manager (if you don’t have one already) 🔗

Before we can install Hugo, we need to install a Package Manager. The package Manager we will use is called Scoop .

Scoop is a package manager that allow you to download and install certain programs or tools easily using commands in the command line or PowerShell.

Installing Scoop has similar steps to using Homebrew on a Mac or Linux system.

1. Search for Windows Powershell, right click, ‘Run as Admin’

2. Copy paste the following command and press enter

iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

3. If the above script is not allowed to be executed, try running this first:

Set-ExecutionPolicy RemoteSigned -scope CurrentUser

If successful, you will be able to type scoop help and other scoop commands.

homebrew

Install Hugo 🔗

1. We can now install Hugo. Run the following command in Powershell:

scoop install hugo

2. Now within PowerShell (or go to Command Line), you can enter one of the commands below to confirm that hugo is now on your machine:

hugo version

This will tell you the version of Hugo that was installed.

hugo help

This will print a bunch of flags and commands that can be used.

← 1. Start Here 3. Create a new Hugo Project →