Node14+版本下hexo部署失败

Node14+版本下hexo部署失败

好久没更新博客了,今天更新博客部署hexo,我现在本地部署hexo出现了这个问题

tianhandeliedeMacBook-Pro:Coldcrack tianhandelie$ hexo s
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib
Referenced from: /usr/local/bin/node
Reason: image not found
Abort trap: 6

-w571

一看我猜就是应为我刚升级了系统,好多插件需要更新一下,于是我更新了node插件

brew upgrade node

再使用heox s发现可以部署本地了,然后高高兴兴的往远程环境部署。。。结果给了我当头一棒,又报了这问题。。。

tianhandeliedeMacBook-Pro:Coldcrack tianhandelie$ hexo d
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
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
    at copyFile (fs.js:1924:10)
    at tryCatcher (/Users/tianhandelie/Desktop/Coldcrack/node_modules/bluebird/js/release/util.js:16:23)
    at ret (eval at makeNodePromisifiedEval (/usr/local/lib/node_modules/hexo/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:13:39)
    at /Users/tianhandelie/Desktop/Coldcrack/node_modules/hexo-fs/lib/fs.js:181:12
    at tryCatcher (/Users/tianhandelie/Desktop/Coldcrack/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/tianhandelie/Desktop/Coldcrack/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/tianhandelie/Desktop/Coldcrack/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/tianhandelie/Desktop/Coldcrack/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/tianhandelie/Desktop/Coldcrack/node_modules/bluebird/js/release/prom

-w585
我没办法了,只能去hexo在GitHub的Issues看看有没有人反馈这个问题。结果还真让我找到了
Issues#186
他说是node14导致的hexo版本太低,不能部署,他让我升级hexo,我这里升级这个有点麻烦,我就想试试降级node到我可以用的版本,我就到node官网上下载node,重新安装。
然后

hexo clean
hexo d

搞完收工

-------------本文结束感谢您的阅读-------------