[bug]hexo d 提示You should configure deployment settings in _config.yml first!

问题: 使用hexo d 提示You should configure deployment settings in _config.yml first!

Available deployer plugins:
git

For more help, you can check the online docs: [http://hexo.io/](https://link.jianshu.com?t=http://hexo.io/)
```

解决问题:
1:排查->是否安装一下hexo-deployer-git这个模块
没有安装:`npm install hexo-deployer-git --save`使用指令安装

2:排查->_config.yml 这个文件的deploy写了没有;写全了没有
我的就是因为_config.yml中deploy下的type等前面没有空格导致。。。。。

以下为正确的写法(图片):
![_config.yml中deploy正确写法](https://upload-images.jianshu.io/upload_images/126164-c5ad89ec71d8a4a1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容