Chocolatey 提供一个命令行下安装程序的环境。

https://chocolatey.org/install

配置 PowerShell

# 使用管理员运行 PowerShell
Set-ExecutionPolicy Bypass -Scope Process

# 下面应当返回 bypass
Get-ExecutionPolicy

安装 Chocolatey


# 安装Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

安装 Hugo

打开 PowerShell,然后运行下面的命令。

choco install hugo -confirm

# or

choco install hugo-extended -confirm

作者简介

Chun-Hui Gao is a Research Associate at Huazhong Agricultural University.

重复使用

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The source code is licensed under MIT. The full source is available at https://github.com/yihui/hugo-prose.

欢迎修订

如果您发现本文里含有任何错误(包括错别字和标点符号),欢迎在本站的 GitHub 项目里提交修订意见。

引用本文

如果您使用了本文的内容,请按照以下方式引用:

gaoch (2019). Windows中使用Chocolatey包管理系统安装Hugo. BIO-SPRING. /post/2019/11/10/windows-chocolatey-install-hugo/

BibTeX citation

@misc{
  title = "Windows中使用Chocolatey包管理系统安装Hugo",
  author = "gaoch",
  year = "2019",
  journal = "BIO-SPRING",
  note = "/post/2019/11/10/windows-chocolatey-install-hugo/"
}