macOS安装
macOS很简单,进入Welcome to Python.org。
点击图片中按钮,一直下一步操作即可。
查看安装的Python版本

由于macOS本身自带Python 2版本,所以使用python3 --version和pip3 --version进行查看。出现Python和pip安装成功的提示即安装成功。
缺失模块。
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