Eureka's Studio.

Mac下Hexo踩坑记录

2023/11/01

以下的总结写下来看似很简单 但是这一下午+一晚上的经历却是一段血泪史

Mac下Hexo踩坑记录

插件安装

建议用yarn 不要用npm 接近一半的报错都发生

1
2
sudo npm install -g yarn
yarn add package_name --save

Error: Spawn failed

改https为ssh方式

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
##进入站点根目录
cd /usr/local/src/hexo/hanyubolg/

##删除git提交内容文件夹
vim _config.yml

##修改
deploy:

type: git

repo: <https://github.com/yourname/yourname.github.io.git> -> git@github.com:a956551943/weixiaohui.github.io.git

branch: master

##最后
hexo clean && hexo g && hexo d

Author: CrazyJums
Link: <https://jums.club/hexo-Error-Spawn-failed/#2-%E8%A7%A3%E5%86%B3%E6%96%B9%E5%BC%8F1%EF%BC%88%E6%8E%A8%E8%8D%90%EF%BC%89>
Source: CrazyJums
Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.

YAMLException

md文件在Typora中修改过(编码不正常) 使用IDEA打开进行修改(这个坑掉进去好久爬不上来)

CATALOG
  1. 1. Mac下Hexo踩坑记录
    1. 1.1. 插件安装
    2. 1.2. Error: Spawn failed
    3. 1.3. YAMLException