【Hexo异常】fatal: in unpopulated submodule '.deploy_git'

 今天又重新搞了下hexo,好久不动它居然报了错。

 这种情况可以先安装下相关的依赖:

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
npm install hexo-deployer-git –save

  实在不行,就把它删掉,然后重新生成和部署。

rm -rf .deploy_git hexo g hexo d


Next之Leancloud访客统计

Error: 阅读次数:Counter not initialized! See more at console err msg.

解决

出现上述之错误,遂查看配置文件之说明

1
2
3
4
5
6
7
8
9
10
11
# Show number of visitors to each article.
# You can visit https://leancloud.cn get AppID and AppKey.
leancloud_visitors:
enable: true
app_id: <<your app id>>
app_key: <<your app key>>
# Dependencies: https://github.com/theme-next/hexo-leancloud-counter-security
# If you don't care about security in lc counter and just want to use it directly
# (without hexo-leancloud-counter-security plugin), set the `security` to `false`.
security: true
betterPerformance: false

 

如上述两个解决办法:

  1. 安装hexo-leancloud-counter-security并设置leancloudapp_idapp_key

  2. security设置为security: false

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄