Install Hugo With Chocolatey Package Manager On Windows 10 [video]
Installing Hugo on Windows is really quite simple with Chocolately Package Manager. This video will explain the process of installing Hugo on Windows 10.
Installing Hugo on Windows is easy with chocolately package manager.
For those who are not familiar, Hugo is a static website generator that can help you manage blazing fast static websites with minimal effort.
If you are on Windows, installing Hugo is easy using Chocolately Package Manager. Here are the steps we take.
Directions To Install Hugo on Windows 10 With Chocolately Package Manager
Navigate to chocolately package manager
Click the “install” link which is located at the top right hand corner next to the light/dark toggle.
Select
individual
install methodOpen up an elevated administrator instance of Windows Powershell. To accomplish this, the fastest way is to press the Windows key which will open up the start menu. Start typing
Powershell
. Next, you will need to right-click on Windows Powershell and selectRun As Administrator
Next we will need to check the
Execution Policy
. This is as simple as copying and pasting the following line into the elevated Powershell:Get-ExecutionPolicy
The related section from the official installation documentation says the following:
Run
Get-ExecutionPolicy
. If it returnsRestricted
, then runSet-ExecutionPolicy AllSigned
orSet-ExecutionPolicy Bypass -Scope Process
.
Once the Execution Policy is set all we need to do now is actually install chocolatey:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(‘https://community.chocolatey.org/install.ps1'))
Once you paste the text into Powershell, press Enter
and wait a few moments for it to install. Once the script has executed all that is left is to type choco
to verify that Chocolately is now installed.
Once that is completed, we can get on with installing Hugo. To do that simply type
choco install hugo -a
. This will automatically download the latest release of Hugo and the flag-a
says to Chocolately to go ahead and install the package (you can manually confirm this by ommiting the -a flag).Once the package has installed, simply type
hugo version
to verify the installation.
This article is part of a series on how to create a Hugo website from scratch. Read the original article here: How To Create A Hugo Website From Scratch: An Overview