雨果版本未更新到最新 [英] Hugo version not updating to latest

查看:59
本文介绍了雨果版本未更新到最新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用雨果静态网站生成器.

问题::雨果说它已更新为最新版本,但尚未更新.

Problem: Hugo is saying it is updated to the latest version but it is not.

$雨果版
Hugo Static Site Generator v0.40.1 linux/amd64 BuildDate:2018-04-25T17:16:11Z

但是最新版本现在是 v0.70.0

系统:通过Visual Studio Code v1.45.0中的终端通过Linux的Windows子系统

System: Windows Subsystem for Linux via the terminal in Visual Studio Code v1.45.0

任何帮助将不胜感激,谢谢大家.

Any help would be much appreciated thank you all.

推荐答案

如果您是通过 apt 程序包管理器安装的,那么您可能不走运,因为官方存储库可能没有紧跟最新版本的Hugo.

If you've installed it via the apt package manager, you might be out of luck there, because the official repositories might not be up to date with the latest version of Hugo.

要更新存储库并安装最新版本的 hugo ,请尝试

To update the repositories and install the latest available version of hugo, try doing

sudo apt update
sudo apt install hugo

但是,我看到它只获得版本 0.6x .

However, I see it's only getting version 0.6x.

如果要在Windows上使用它,可以尝试通过巧克力

If you want to use it on Windows, you could try installing it via Chocolatey or Scoop. Both seem to have version 0.70.x in their repositories, but you'd need to install them first, because they're not Windows out-of-the-box software. Not sure if and how it would work if you use it in the WSL, though.

否则,总会有一个好消息下载二进制文件并保存.

Otherwise, there's always the good'ol download the binary and save it.

这篇关于雨果版本未更新到最新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆