文章摘要
GPT 4

在hexo更新文章遇到的问题:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[ERROR][hexo-renderer-pandoc] pandoc exited with code null. FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html Error: [ERROR][hexo-renderer-pandoc] On /Users/couture/MyBlog/source/_posts/C-windows-环境搭建.md [ERROR][hexo-renderer-pandoc] pandoc exited with code null.

FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error:
[ERROR][hexo-renderer-pandoc] On /Users/couture/MyBlog/source/_posts/C-windows-环境搭建.md
[ERROR][hexo-renderer-pandoc] pandoc exited with code null.
at Hexo.pandocRenderer (/Users/couture/MyBlog/node_modules/hexo-renderer-pandoc/index.js:35:11)
at Hexo.tryCatcher (/Users/couture/MyBlog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/Users/couture/MyBlog/node_modules/bluebird/js/release/method.js:15:34)
at /Users/couture/MyBlog/node_modules/hexo/lib/hexo/render.js:81:22
at tryCatcher (/Users/couture/MyBlog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/couture/MyBlog/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/Users/couture/MyBlog/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromiseCtx (/Users/couture/MyBlog/node_modules/bluebird/js/release/promise.js:641:10)
at _drainQueueStep (/Users/couture/MyBlog/node_modules/bluebird/js/release/async.js:97:12)
at _drainQueue (/Users/couture/MyBlog/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/Users/couture/MyBlog/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues [as _onImmediate] (/Users/couture/MyBlog/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:478:21)

解决方式:

重新安装hexo-renderer-pandoc模块
1
2
npm uninstall hexo-renderer-pandoc
npm install hexo-renderer-pandoc
如不成功,用hexo-renderer-marked代替hexo-renderer-pandoc模块渲染器
1
2
npm uninstall hexo-renderer-pandoc
npm install hexo-renderer-marked

问题解决~