nxg0916
所遇所思
2021-01-15 17:32

关于使用 Hexo 和 GitHub 搭建博客,出现 hexo -d 报错如何解决?(win10下)

  • github
  • git
  • 开发语言

使用git时

出现以下错误

nxg916@DESKTOP-K10ESU3 MINGW64 ~/Desktop/myblog
$ 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: 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 (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\util.js:16:23)
    at ret (eval at makeNodePromisifiedEval (D:\applyhuancun\nodejs\node_modules\hexo-cli\node_modules\bluebird\js\release\promisify.js:184:12), <anonymous>:13:39)
    at C:\Users\nxg916\Desktop\myblog\node_modules\hexo-fs\lib\fs.js:144:39
    at tryCatcher (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:517:31)
    at Promise._settlePromise (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:574:18)
    at Promise._settlePromise0 (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:619:10)
    at Promise._settlePromises (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:699:18)
    at Promise._fulfill (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:643:18)
    at Promise._resolveCallback (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:437:57)
    at Promise._settlePromiseFromHandler (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:529:17)
    at Promise._settlePromise (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:574:18)
    at Promise._settlePromise0 (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:619:10)
    at Promise._settlePromises (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:699:18)
    at Promise._fulfill (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:643:18)
    at Promise._resolveCallback (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:437:57)
    at Promise._settlePromiseFromHandler (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:529:17)
    at Promise._settlePromise (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:574:18)
    at Promise._settlePromise0 (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:619:10)
    at Promise._settlePromises (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:699:18)
    at Promise._fulfill (C:\Users\nxg916\Desktop\myblog\node_modules\bluebird\js\release\promise.js:643:18)

 

在git环境中出现的,无法上传到GitHub中。

在本地预览博客时正常的。

 

请问如何解决?

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答