我是靠谱客的博主 苗条黑米,这篇文章主要介绍【Hexo】deploy出错的解决方法,现在分享给大家,希望可以做个参考。

复制代码
1
1、ERROR Deployer not found: git

执行npm install hexo-deployer-git --save

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
2、$ hexo d INFO Deploying: git INFO Clearing .deploy_git folder... INFO Copying files from public folder... fatal: Not a git repository (or any of the parent directories): .git FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html Error: fatal: Not a git repository (or any of the parent directories): .git at ChildProcess.<anonymous> (E:webHexonode_moduleshexo-utillibspawn.js:37:17) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:191:7) at ChildProcess.cp.emit (E:webHexonode_modulescross-spawnlibenoent.js:40:29) at maybeClose (internal/child_process.js:850:16) at Socket.<anonymous> (internal/child_process.js:323:11) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at Pipe._handle.close [as _onclose] (net.js:492:12) FATAL fatal: Not a git repository (or any of the parent directories): .git Error: fatal: Not a git repository (or any of the parent directories): .git at ChildProcess.<anonymous> (E:webHexonode_moduleshexo-utillibspawn.js:37:17) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:191:7) at ChildProcess.cp.emit (E:webHexonode_modulescross-spawnlibenoent.js:40:29) at maybeClose (internal/child_process.js:850:16) at Socket.<anonymous> (internal/child_process.js:323:11) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at Pipe._handle.close [as _onclose] (net.js:492:12)

配置Deployment首先,你需要为自己配置身份信息,打开命令行,然后输入:

    • git config --global user.name "yourname"
    • git config --global user.email "youremail"
复制代码
1
2
3.以上做完还不行
复制代码
1
删掉根目录下的文件夹:.deploy_git,重新deploy就可以了。

 以上是在SSH配置好的前提下

转载于:https://www.cnblogs.com/tenderwx/p/5783432.html

最后

以上就是苗条黑米最近收集整理的关于【Hexo】deploy出错的解决方法的全部内容,更多相关【Hexo】deploy出错内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(92)

评论列表共有 0 条评论

立即
投稿
返回
顶部