hexo兼容性问题
node -v
v14.17.0
npm -v
6.14.13
hexo: 5.4.0
hexo-cli: 4.3.0
以上版本不兼容。
hexo clean && hexo g && hexo d && git add . && git commit -m "update" && git push
报错
Copying files from public folder...
FATAL {
err: TypeError [ERR_INVALID_ARG_TYPE]: The "mode" argument must be integer. Received an instance of Object
at copyFile (fs.js:2040:10)
解决方案,更换为
node -v
12.14.0
https://www.jianshu.com/p/68177749d33f
然后再安装hexo,重新部署即可
1、
npm install -g hexo-cli
2、
npm install --save hexo-blog-encrypt
3、
npm un hexo-renderer-marked
npm i hexo-renderer-pandoc
浙公网安备 33010602011771号