在换了电脑重新部署博客环境后,因为没有注意安装的版本而出现了以下问题:
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
TypeError [ERR_INVALID_ARG_TYPE]: The "mode" argument must be integer. Received an instance of Object
使用hexo -v查看一下版本:
因为node.js和hexo存在版本适配的关系,所以当可能是一个版本过高一个版本过低导致的出现问题。
解决这个问题可以将hexo更新至高版本,也可以重新安装一个低版本的node。
我是用的办法是将node换成低版本。参考文章https://www.jb51.net/article/202124.htm
成功解决问题。