博客从Window迁移到Mac电脑
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:1972:10)
at trycatcher (/users/zhouhailin/blog/node_modules/bluebird/js/release/util.js:16:23)
at ret (eval at makenodepromisifiedeval (/usr/local/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:13:39)
at /users/zhouhailin/blog/node_modules/hexo-fs/lib/fs.js:144:39
at trycatcher (/users/zhouhailin/blog/node_modules/bluebird/js/release/util.js:16:23)
解决办法
这是因为nodejs版本太高导致,卸载安装低版本。
卸载参考如下步骤
下载低版本nodejs
传送门🚪 https://nodejs.org/zh-cn/download/releases/
续
很久一段时间没有管HEXO,最近准备重拾站点,再一次遇到了node版本过高问题。尝试升级hexo版本失败,最终还是选择降低node版本解决此问题。
- 系统信息:macOS Monterey
- 芯片架构:M1
- node版本:16
- hexo版本:4.2
降低node版本后相关信息
hexo: 4.2.0
hexo-cli: 4.3.0
os: darwin 21.4.0 12.3.1
node: 12.22.11
v8: 7.8.279.23-node.56
uv: 1.40.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.18.1
modules: 72
nghttp2: 1.41.0
napi: 8
llhttp: 2.1.4
http_parser: 2.9.4
openssl: 1.1.1n
cldr: 37.0
icu: 67.1
tz: 2021a4
unicode: 13.0