Install Hugo on Windows
Download the latest Hugo binary from here or v0.119 directly from here.
Extract the zip file to a folder of your choice. For example,
C:\Hugo\bin
.Add the path to the Hugo binary to your PATH environment variable. For example,
C:\Hugo\bin
.- Search for “Edit the system environment variables” in the Windows search bar.
- Click on “Environment Variables…”.
- Under “System variables”, select “Path” and click “Edit…”.
- Click “New” and add the path to the Hugo binary. For example,
C:\Hugo\bin
. - Click “OK” to save the changes.
Open a new command prompt and run
hugo version
to verify that Hugo is installed properly.You can now delete the zip file.
Install Go on Windows (it is required for Hugo)
- Download the latest Go binary from here.
- Run the installer.
Install Git on Windows (it is required for Hugo)
- Download the latest Git binary from https://git-scm.com/download/win.
- Run the installer.
Run Hugo on Windows
- Open git bash. You can find it in the Windows search bar. Do not use the Windows command prompt or PowerShell.
- Clone the repository:
git clone your-repository-url
. - Navigate to the repository:
cd your-repository-name
. - Run Hugo:
hugo server
. - Copy the URL from the output and paste it in your browser.