菜菜01 2021-10-07 13:03 采纳率: 100%
浏览 43
已结题

hexo new <title>无法创建

使用hexo new 命令创建文章式报下面这个错误,上网查找说是时区不对,然后又将主题文件下的时区改成了上海,但是还是不对;然后又经过查看发现是缩进不对,但是不知道怎么进行修改,希望能有人帮助一下,笔芯,


86157@LAPTOP-G3TT1IA6 MINGW64 /d/博客
$ hexo new "title"
INFO  Validating config
ERROR {
  err: Error: [Hexo Admin]: the provided password_hash looks like an md5 hash -- hexo-admin has switched to use bcrypt; see the Readme for more info.
      at D:\博客\node_modules\hexo-admin\index.js:14:11
      at D:\博客\node_modules\hexo\lib\hexo\index.js:305:14
      at tryCatcher (D:\博客\node_modules\bluebird\js\release\util.js:16:23)
      at Promise._settlePromiseFromHandler (D:\博客\node_modules\bluebird\js\release\promise.js:547:31)
      at Promise._settlePromise (D:\博客\node_modules\bluebird\js\release\promise.js:604:18)
      at Promise._settlePromise0 (D:\博客\node_modules\bluebird\js\release\promise.js:649:10)
      at Promise._settlePromises (D:\博客\node_modules\bluebird\js\release\promise.js:729:18)
      at _drainQueueStep (D:\博客\node_modules\bluebird\js\release\async.js:93:12)
      at _drainQueue (D:\博客\node_modules\bluebird\js\release\async.js:86:9)
      at Async._drainQueues (D:\博客\node_modules\bluebird\js\release\async.js:102:5)
      at Immediate.Async.drainQueues [as _onImmediate] (D:\博客\node_modules\bluebird\js\release\async.js:15:14)
      at processImmediate (internal/timers.js:464:21)
} Plugin load failed: %s hexo-admin
INFO
  ===================================================================

      #####  #    # ##### ##### ###### #####  ###### #      #   #
      #    # #    #   #     #   #      #    # #      #       # #
      #####  #    #   #     #   #####  #    # #####  #        #
      #    # #    #   #     #   #      #####  #      #        #
      #    # #    #   #     #   #      #   #  #      #        #
      #####   ####    #     #   ###### #    # #      ######   #

                            3.8.4
  ===================================================================
FATAL {
  err: YAMLException: bad indentation of a mapping entry (9:17)

    6 | toc: true
    7 | mathjax: true
    8 | summary:
    9 | tags: categories:
  ----------------------^
   10 | &#8203;---
      at generateError (D:\博客\node_modules\js-yaml\lib\loader.js:183:10)
      at throwError (D:\博客\node_modules\js-yaml\lib\loader.js:187:9)
      at readBlockMapping (D:\博客\node_modules\js-yaml\lib\loader.js:1182:7)
      at composeNode (D:\博客\node_modules\js-yaml\lib\loader.js:1441:12)
      at readDocument (D:\博客\node_modules\js-yaml\lib\loader.js:1625:3)
      at loadDocuments (D:\博客\node_modules\js-yaml\lib\loader.js:1688:5)
      at load (D:\博客\node_modules\js-yaml\lib\loader.js:1714:19)
      at D:\博客\node_modules\hexo\lib\hexo\post.js:152:63
      at tryCatcher (D:\博客\node_modules\bluebird\js\release\util.js:16:23)
      at Promise._settlePromiseFromHandler (D:\博客\node_modules\bluebird\js\release\promise.js:547:31)
      at Promise._settlePromise (D:\博客\node_modules\bluebird\js\release\promise.js:604:18)
      at Promise._settlePromise0 (D:\博客\node_modules\bluebird\js\release\promise.js:649:10)
      at Promise._settlePromises (D:\博客\node_modules\bluebird\js\release\promise.js:729:18)
      at Promise._fulfill (D:\博客\node_modules\bluebird\js\release\promise.js:673:18)
      at Promise._settlePromise (D:\博客\node_modules\bluebird\js\release\promise.js:617:21)
      at Promise._settlePromise0 (D:\博客\node_modules\bluebird\js\release\promise.js:649:10)
      at Promise._settlePromises (D:\博客\node_modules\bluebird\js\release\promise.js:729:18)
      at Promise._fulfill (D:\博客\node_modules\bluebird\js\release\promise.js:673:18)
      at D:\博客\node_modules\bluebird\js\release\nodeback.js:42:21
      at D:\博客\node_modules\nunjucks\src\environment.js:41:5
      at RawTask.call (D:\博客\node_modules\asap\asap.js:40:19)
      at flush (D:\博客\node_modules\asap\raw.js:50:29) {
    reason: 'bad indentation of a mapping entry',
    mark: {
      name: null,
      buffer: '&#8203;--- title: title \n' +
        'date: 2021-10-06 13:30:47 \n' +
        'top: false \n' +
        'cover: false \n' +
        'password: \n' +
        'toc: true \n' +
        'mathjax: true \n' +
        'summary: \n' +
        'tags: categories: \n' +
        '&#8203;---\n',
      position: 135,
      line: 8,
      column: 16,
      snippet: '  6 | toc: true \n' +
        '  7 | mathjax: true \n' +
        '  8 | summary: \n' +
        '  9 | tags: categories: \n' +
        '----------------------^\n' +
        ' 10 | &#8203;---'
    }
  }
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html

86157@LAPTOP-G3TT1IA6 MINGW64 /d/博客
$


  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 10月15日
    • 创建了问题 10月7日

    悬赏问题

    • ¥15 向数据表用newid方式插入GUID问题
    • ¥15 multisim电路设计
    • ¥20 用keil,写代码解决两个问题,用库函数
    • ¥50 ID中开关量采样信号通道、以及程序流程的设计
    • ¥15 U-Mamba/nnunetv2固定随机数种子
    • ¥15 C++行情软件的tick数据如何高效的合成K线
    • ¥15 vba使用jmail发送邮件正文里面怎么加图片
    • ¥15 vb6.0如何向数据库中添加自动生成的字段数据。
    • ¥20 在easyX库下编写C语言扑克游戏跑的快,能实现简单的人机对战
    • ¥15 svpwm波形异常求解答