执行下面的命令就可以了:
choco install hugo -confirm
界面输出:
[code]C:\WINDOWS\system32>choco install hugo -confirm
Chocolatey v0.10.8
Installing the following packages:
hugo
By installing you accept licenses for the packages.
Progress: Downloading hugo 0.31.1… 100%
hugo v0.31.1 [Approved]
hugo package files install completed. Performing other installation steps.
Downloading hugo 64 bit
from ‘https://github.com/spf13/hugo/releases/download/v0.31.1/hugo_0.31.1_Windows-64bit.zip’
Progress: 100% - Completed download of C:\Users\YuCheng\AppData\Local\Temp\chocolatey\hugo\0.31.1\hugo_0.31.1_Windows-64bit.zip (5.59 MB).
Download of hugo_0.31.1_Windows-64bit.zip (5.59 MB) completed.
Hashes match.
Extracting C:\Users\YuCheng\AppData\Local\Temp\chocolatey\hugo\0.31.1\hugo_0.31.1_Windows-64bit.zip to C:\ProgramData\chocolatey\lib\hugo\tools…
C:\ProgramData\chocolatey\lib\hugo\tools
ShimGen has successfully created a shim for hugo.exe
The install of hugo was successful.
Software installed to ‘C:\ProgramData\chocolatey\lib\hugo\tools’
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
C:\WINDOWS\system32>[/code]