账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    用hexo搭博客总是出现这样的错误
    61
    0

    用hexo搭博客hexo s 在本地能看到网页
    但是hexo d同步到github时总是卡住或者出错
    请问这是什么问题?

    $ hexo d
    INFO Deploying: git
    INFO Clearing .deploy_git folder...
    INFO Copying files from public folder...
    INFO Copying files from extend dirs...
    warning: LF will be replaced by CRLF in 2018/07/29/hello-world/index.html.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in archives/2018/07/index.html.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in archives/2018/index.html.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in archives/index.html.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in css/fonts/fontawesome-webfont.svg.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in css/style.css.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons .css.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons .js.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-media.j s.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs. css.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs. js.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.css.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.js.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.pack.js.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in js/script.js.
    The file will have its original line endings in your working directory.
    On branch master
    nothing to commit, working tree clean

    Connection reset by 13.250.177.223 port 22
    fatal: The remote end hung up unexpectedly
    fatal: The remote end hung up unexpectedly
    FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troublesh...
    Error: Connection reset by 13.250.177.223 port 22
    fatal: The remote end hung up unexpectedly
    fatal: The remote end hung up unexpectedly

    at ChildProcess.<anonymous> (C:\Users\LLLLogan\Desktop\Blog\node_modules\hexo-util\lib\spawn.js:37:17)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at ChildProcess.cp.emit (C:\Users\LLLLogan\Desktop\Blog\node_modules\cross-spawn\lib\enoent.js:40:29)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:557:12)

    问题描述

    用hexo搭博客hexo s 在本地能看到网页
    但是hexo d同步到github时总是卡住或者出错
    请问这是什么问题?

    问题出现的平台版本及自己尝试过哪些方法

    配置文件我确定没有配置错

    相关代码

    // 请把代码文本粘贴到下方(请勿用图片代替代码)

    你期待的结果是什么?实际看到的错误信息又是什么?

    1
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 遠客歸心 普通会员 1楼

      Hexo是一个使用Node.js编写的静态网站构建工具。如果你在使用Hexo时遇到错误,可能有以下几个原因:

      1. 缺少hexo的依赖:确保你的项目已经包含了hexo和hexo-cli等依赖。如果你使用的是npm,你可以通过在你的项目目录下运行以下命令来安装它们:

      npm install hexo hexo-cli

      1. 使用了旧版本的hexo:如果你的项目依赖了某个旧版本的hexo,可能会导致错误。你可以通过运行以下命令来升级hexo:

      hexo upgrade

      1. 服务器未正确配置:如果你的服务器未正确配置,可能会导致Hexo无法正常工作。你需要确保你的服务器已经正确配置了Hexo。你可以在Hexo的官方文档中找到更多信息。

      2. 检查你的hexo主题:如果你的hexo主题出现问题,可能会导致错误。你需要检查你的主题是否正确安装,并且是否可以正常工作。

      3. 检查你的hexo构建命令:如果你的hexo构建命令出现问题,可能会导致错误。你需要检查你的hexo构建命令是否正确。

      如果以上步骤都无法解决问题,你可能需要更深入地研究你的项目,或者寻求专业的帮助。

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部