Amazon Linux 和Amazon Linux 2 的repo 里,虽然有例如amzn2-core-source/2 这样的repo,但是里面根本没有软件包:
1 | ~ % uname -r |
其实源代码还是在的,只是要用yumdownloader 来下载:
1 | ~ % yumdownloader --source kernel |
这个在AWS 的FAQ里已经说了,但很多人(包括我)一开始找不到。
与其感慨路难行,不如马上出发
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true