之前更换系统后,博客一直就没有继续更新了,今日重新clone下来,顺利地yarn install之后,执行yarn server时发生错误
pandoc exited with code null.

问题描述

详细输出如下,

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
zzq@ThinkPad-zzq:~/code/repo/blog$ hexo server
INFO Validating config
INFO ==================================
███╗ ██╗███████╗██╗ ██╗████████╗
████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝
██╔██╗ ██║█████╗ ╚███╔╝ ██║
██║╚██╗██║██╔══╝ ██╔██╗ ██║
██║ ╚████║███████╗██╔╝ ██╗ ██║
╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝
========================================
NexT version 8.9.0
Documentation: https://theme-next.js.org
========================================
INFO Start processing
ERROR {
err: Error:
[ERROR][hexo-renderer-pandoc] On /home/zzq/code/repo/blog/node_modules/hexo-theme-next/languages/README.md
[ERROR][hexo-renderer-pandoc] pandoc exited with code null.
at Hexo.pandocRenderer (/home/zzq/code/repo/blog/node_modules/hexo-renderer-pandoc/index.js:114:11)
at Hexo.tryCatcher (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/method.js:15:34)
at /home/zzq/code/repo/blog/node_modules/hexo/lib/hexo/render.js:75:22
at tryCatcher (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (node:internal/timers:464:21)
} Process failed: %s languages/README.md
INFO Generate link [9365] for post [source/_posts/Hexo.md][ Hexo ]
INFO Generated: categories [undefined] for post [source/_posts/Hexo.md][ Hexo ]
FATAL {
err: Error:
[ERROR][hexo-renderer-pandoc] On /home/zzq/code/repo/blog/source/_posts/First集与Follow集的求法.md
[ERROR][hexo-renderer-pandoc] pandoc exited with code null.
at Hexo.pandocRenderer (/home/zzq/code/repo/blog/node_modules/hexo-renderer-pandoc/index.js:114:11)
at Hexo.tryCatcher (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/method.js:15:34)
at /home/zzq/code/repo/blog/node_modules/hexo/lib/hexo/render.js:75:22
at tryCatcher (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromiseCtx (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/promise.js:641:10)
at _drainQueueStep (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/async.js:97:12)
at _drainQueue (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/zzq/code/repo/blog/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (node:internal/timers:464:21)
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html

![image-20220109175313222](hexo server遇到问题/image-20220109175313222.png)

问题分析

原来是重装系统后pandoc未安装而导致的

解决方案

安装pandoc即可,我在ubuntu下执行如下命令,

sudo apt install pandoc

问题解决