macos brew镜像加速
最新版的brew,执行命令时,会默认自动从https://formulae.brew.sh/api/formulae.jws.json下载最新JSON api文件,install会很慢,设置国内加速代理vim ~/.bash_profile或者vim ~/.zshrc
1 | ####### brew安装镜像加速 |
添加后source ~/.bash_profile或者source ~/.zshrc
缺失模块。
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