ssh 设置了password, hexo 部署命令怎么写
第一次生成生成新的SSH Key,设置了密码
后面部署(hexo deploy)hexo到GitHub,失败。提示提示如下:
Administrator@10_141_50_74 MINGW64 ~/Documents/HEXO
$ hexo d
FATAL can not read a block mapping entry; a multiline key may not be an implicit key at line 73, column 1:
^
YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 73, column 1:
^
at generateError (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:162:10)
at throwError (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:168:9)
at readBlockMapping (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1040:9)
at composeNode (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1326:12)
at readDocument (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1488:3)
at loadDocuments (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1544:5)
at Object.load (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1561:19)
at Hexo.yamlHelper (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\lib\plugins\renderer\yaml.js:7:15)
at Hexo.tryCatcher (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\bluebird\js\release\util.js:16:23)
at Hexo.<anonymous> (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\bluebird\js\release\method.js:15:34)
at C:\Users\Administrator\Documents\HEXO\node_modules\hexo\lib\hexo\render.js:61:21
at tryCatcher (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\bluebird\js\release\promise.js:504:31)
at Promise._settlePromise (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\bluebird\js\release\promise.js:561:18)
at Promise._settlePromise0 (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\bluebird\js\release\promise.js:606:10)
at Promise._settlePromises (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\bluebird\js\release\promise.js:685:18)
at Async._drainQueue (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\bluebird\js\release\async.js:138:16)
at Async._drainQueues (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\bluebird\js\release\async.js:148:10)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\Administrator\Documents\HEXO\node_modules\hexo\node_modules\bluebird\js\release\async.js:17:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
提示这个一般是因为你的
config.yml
里的冒号后面没有空格所致。提示 YAMLException,我觉得是配置文件解析出错了,检查一下你的
config.yml
。你可以看你配置文件73行,检查是否缺少空格。
配置文件都是yaml格式的,检查下你的站点配置_config.yaml提示了行数 我最近也在使用hexo有问题可以随时沟通 我的博客