Unable to create ndex.lock
之前因为这个错误什么都改不了,终于找到这个bug:
FATAL Something’s wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: fatal: Unable to create ‘D:/hexo/blog/.deploy_git/.git/index.lock’: File exists.
可能是之前在git没有运行完成的时候强制关闭,下次提交的时候产生的错误
找.deploy_git 文件夹,进去可能没有.git ,打开隐藏文件,找 index文件 删除就好了。
YAMLException
YAMLException :can not read a block mapping entry; a multiline key may not be an implicit key at line 4, column 1:
查看新建要上传地md文件,tags或者其他,与后面内容是不是有一个空格
- 也可以通过命令 hexo s –debug 在本地浏览器的localhost:4000 预览博文效果。写好博文并且样式无误后,通过hexo g、hexo d 生成、部署网页