在linux上安装hexo之后,hexo g报错pandoc

[ERROR][hexo-renderer-pandoc] On /media/diraw/DA9A14559A14310D/Blog/source/_posts/CS/Linux/7.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

但是我没有安装pandoc啊,我用的是hexo原生的渲染工具,然后我把hexo-renderer-marked卸了又重新安装,就出现下面的错误了

hexo g报错TypeError: tokens.at is not a function,如下图所示:

Image 89

结果发现是我的node.js(14)太老了,不支持 tokens.at 方法,并且与较新版本的 hexo-renderer-marked 不兼容,换成16版本的就好了

nvm install 16
nvm use 16
npm install -g hexo-cli