Jianghc's Blog

Back

写在最前面的#

差不多一年的时间没写博客了,这次在换的mac上重新配置了hexo的环境,其中也遇到了一些问题,这里先进行一下记录。省的后面忘了。

相关问题#

hexo在-d的时候出现的插件node js不匹配的问题 问题描述:

typeError [ERR_INVALID_ARG_TYPE]: The "mode" argument must be integer. Received an instance of Object
plaintext

问题原因:node版本过高,内部有插件不适配。可以通过降级的方式来进行处理,由于这里用的brew作为mac的包管理软件,因此直接进行相关操作即可

$ node -v
v18.11.0
$ brew install node@12
$ brew unlink node
$ brew link --overwrite node@12
$ node -v
v12.22.12
plaintext
mac上的hexo相关问题
https://525511.xyz/blog/mac%E4%B8%8A%E7%9A%84hexo%E7%9B%B8%E5%85%B3%E9%97%AE%E9%A2%98
Author Haochen Jiang
Published at October 29, 2022
Comment seems to stuck. Try to refresh?✨