日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

【Hexo】deploy出错的解决方法

發布時間:2023/12/1 编程问答 52 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【Hexo】deploy出错的解决方法 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、ERROR Deployer not found: git

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

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): .gitat ChildProcess.<anonymous> (E:\web\Hexo\node_modules\hexo-util\lib\spawn.js:37:17)at emitTwo (events.js:106:13)at ChildProcess.emit (events.js:191:7)at ChildProcess.cp.emit (E:\web\Hexo\node_modules\cross-spawn\lib\enoent.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): .gitError: fatal: Not a git repository (or any of the parent directories): .gitat ChildProcess.<anonymous> (E:\web\Hexo\node_modules\hexo-util\lib\spawn.js:37:17)at emitTwo (events.js:106:13)at ChildProcess.emit (events.js:191:7)at ChildProcess.cp.emit (E:\web\Hexo\node_modules\cross-spawn\lib\enoent.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"
3.以上做完還不行 刪掉根目錄下的文件夾:.deploy_git,重新deploy就可以了。

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

轉載于:https://www.cnblogs.com/tenderwx/p/5783432.html

總結

以上是生活随笔為你收集整理的【Hexo】deploy出错的解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。