0%

hexo | TypeError [ERR_INVALID_ARG_TYPE]

出现这个的原因是,我使用 brew 更新了软件,其中包括 node

完整的错误如下:

1
2
3
4
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
TypeError [ERR_INVALID_ARG_TYPE]: The "mode" argument must be integer. Received an instance of Object
at copyFile (fs.js:1890:10)
...后面不再贴

这是因为你本地的 node 版本太高导致的。

我使用 node 13 解决了问题。

关于如何替换本机的 node 版本,我推荐你看我下面的博文

另外,切换 node 之后,如果你直接上传可能会得到空白页面,所以,推荐你使用

hexo clean

一下。

请我喝杯咖啡吧~