小弟 hexo 在 deploy 时发生错误,求解答,万分感谢!!!(冒号后的空格检查过, deploy 的 type 改成 git 也试过)

2015-09-10 21:06:47 +08:00
 jackandtom

D:\hexo> hexo g

FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/do
cs/troubleshooting.html
YAMLException: bad indentation of a mapping entry at line 70, column 2:
deploy:
^
at generateError (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml
\loader.js:160:10 )
at throwError (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\lo
ader.js:166:9 )
at readBlockMapping (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-y
aml\loader.js:1061:7 )
at composeNode (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\l
oader.js:1315:12 )
at readDocument (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\
loader.js:1478:3 )
at loadDocuments (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml
\loader.js:1538:5 )
at Object.load (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\l
oader.js:1555:19 )
at Hexo.yamlHelper (D:\hexo\node_modules\hexo\lib\plugins\renderer\yaml.js:7
:15 )
at Hexo.tryCatcher (D:\hexo\node_modules\hexo\node_modules\bluebird\js\main\
util.js:26:23 )
at Hexo.<anonymous> (D:\hexo\node_modules\hexo\node_modules\bluebird\js\main
\method.js:15:34 )
at D:\hexo\node_modules\hexo\lib\hexo\render.js:51:21
at tryCatcher (D:\hexo\node_modules\hexo\node_modules\bluebird\js\main\util.
js:26:23 )
at Promise._settlePromiseFromHandler (D:\hexo\node_modules\hexo\node_modules
\bluebird\js\main\promise.js:503:31 )
at Promise._settlePromiseAt (D:\hexo\node_modules\hexo\node_modules\bluebird
\js\main\promise.js:577:18 )
at Promise._settlePromises (D:\hexo\node_modules\hexo\node_modules\bluebird\
js\main\promise.js:693:14 )
at Async._drainQueue (D:\hexo\node_modules\hexo\node_modules\bluebird\js\mai
n\async.js:123:16 )
at Async._drainQueues (D:\hexo\node_modules\hexo\node_modules\bluebird\js\ma
in\async.js:133:10 )
at Async.drainQueues (D:\hexo\node_modules\hexo\node_modules\bluebird\js\mai
n\async.js:15:14 )
at process._tickCallback (node.js:415:13 )

10289 次点击
所在节点    问与答
6 条回复
twoyuan
2015-09-10 23:23:15 +08:00
先贴 _config.yml 吧
cielpy
2015-09-11 09:38:28 +08:00
YAMLException: bad indentation of a mapping entry at line 70, column 2:
这一行是什么。
jackandtom
2015-09-11 15:44:07 +08:00
@twoyuan 已贴,谢谢提醒
jackandtom
2015-09-11 15:57:03 +08:00
@cielpy 好像是说这有个错误
jackandtom
2015-09-11 15:57:37 +08:00
@cielpy 哦哦,谢谢提醒,原来是多了个空格,已经解决了
sophil
2016-07-04 23:30:30 +08:00
忒感谢了,,找了半天, 才发现多了个空格

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/219785

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX