Hexo.io错误YAMLException:重复的映射键

时间:2018-12-26 23:31:17

标签: node.js hexo

我在任何hexo命令(清理/部署/生成)上都收到以下错误,我完全感到困惑。没有提及具有重复映射键的文件... FWIW,我在Mac OS X上。我为“ type:git”(grep -rnil“ type:git” * / *)做了一个grep,但是行和列不正确。

我不是node.js管理员,但是我正在努力寻找下一步。

FATAL duplicated mapping key at line 86, column 3:
      type: git
      ^
YAMLException: duplicated mapping key at line 86, column 3:
      type: git
      ^
    at generateError (/usr/home/test/node_modules/js-yaml/lib/js-yaml/loader.js:165:10)
    at throwError (/usr/home/test/node_modules/js-yaml/lib/js-yaml/loader.js:171:9)
    at storeMappingPair (/usr/home/test/node_modules/js-yaml/lib/js-yaml/loader.js:308:7)
    at readBlockMapping (/usr/home/test/node_modules/js-yaml/lib/js-yaml/loader.js:1071:9)
    at composeNode (/usr/home/test/node_modules/js-yaml/lib/js-yaml/loader.js:1332:12)
    at readBlockMapping (/usr/home/test/node_modules/js-yaml/lib/js-yaml/loader.js:1062:11)
    at composeNode (/usr/home/test/node_modules/js-yaml/lib/js-yaml/loader.js:1332:12)
    at readDocument (/usr/home/test/node_modules/js-yaml/lib/js-yaml/loader.js:1492:3)
    at loadDocuments (/usr/home/test/node_modules/js-yaml/lib/js-yaml/loader.js:1548:5)
    at Object.load (/usr/home/test/node_modules/js-yaml/lib/js-yaml/loader.js:1569:19)
    at Hexo.yamlHelper (/usr/home/test/node_modules/hexo/lib/plugins/renderer/yaml.js:7:15)
    at Hexo.tryCatcher (/usr/home/test/node_modules/bluebird/js/release/util.js:16:23)
    at Hexo.<anonymous> (/usr/home/test/node_modules/bluebird/js/release/method.js:15:34)
    at Promise.then.text (/usr/home/test/node_modules/hexo/lib/hexo/render.js:61:21)
    at tryCatcher (/usr/home/test/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/usr/home/test/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/usr/home/test/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/usr/home/test/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/usr/home/test/node_modules/bluebird/js/release/promise.js:694:18)
    at _drainQueueStep (/usr/home/test/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/usr/home/test/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/usr/home/test/node_modules/bluebird/js/release/async.js:147:5)

1 个答案:

答案 0 :(得分:0)

您应遵循: -输入:git   回购:   分行:硕士 -输入:git   回购:   分支:大师