【问题标题】:Error in the results of 'hexo generate && hexo deploy''hexo generate && hexo deploy' 结果出错
【发布时间】:2017-07-22 14:06:22
【问题描述】:

我输入后:$ hexo generate && hexo deploy

我得到了这个信息,没有提示错误的原因。

FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html

Error
at ChildProcess.<anonymous> (D:\hexo\blog\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 (D:\hexo\blog\node_modules\cross-spawn\lib\enoent.js:40:29)

at maybeClose (internal/child_process.js:891:16)

at Socket.<anonymous> (internal/child_process.js:342:11)

at emitOne (events.js:96:13)

at Socket.emit (events.js:188:7)

at Pipe._handle.close [as _onclose] (net.js:497:12)

【问题讨论】:

    标签: hexo


    【解决方案1】:

    npm installnpm install -g hexo-cli的过程中可能会出现一些错误。没有办法,只能重装hexo的环境。

    步骤:

    1. cd D:\hexo\blognpm uninstall hexo

    2. cd D:\hexorm -rf blog

    3. npm install -g hexo-cli
    4. hexo init blog
    5. npm install
    6. npm install hexo-deployer-git --save
    7. hexo d -g

    如果hexo deploy再次出错,可以重新安装nodejs和npm,将nodejs更新到最新版本(nodejs并不总是可靠的)。

    您可以扫描my Blog(使用 hexo 和 github 构建,由 AppVeyor 提供 CI)。 源文件在那里

    我会添加一个博客,介绍如何使用 hexo 和 github 构建个人博客,以及如何通过 AppVeyor 和 Travis CI 等第三方服务自动部署(CI,在 wiki 中搜索)。

    【讨论】:

    • “标记”是什么意思?我不太确定。嗯,写博客的目的不是自我推销?
    • 好的,谢谢你,我已经更新了我的答案以遵循帮助文档。
    • 您可能还想阅读:“What signifies "Good" self promotion?” 并不是您不能链接到自己的博客,而是您需要小心这样做。特别是,您的答案必须始终是问题的实际答案,并且是独立的,用户需要去您的博客获取实际答案(他们可以去您的博客获取更多 信息,但答案必须是没有博客的实际答案),并且您必须披露这是您的博客,就像您在此答案中所做的那样。
    • 我现在明白了,谢谢。而我之所以链接到我的博客,是因为我遇到了和提问者一样的问题,但是我没有记录我是如何解决问题的步骤。今晚或明天我会写一篇关于它的博客,也许它可以为提问者提供帮助。
    • @yanss,没问题。我评论主要是为了提供额外的链接。顺便说一句:如果您希望特定用户收到您的评论通知,您需要在评论中包含他们的 ID,并在其前面加上 @。例如,我会是@Makyen。如果您在评论中首先执行此操作,系统将提供已在该答案/问题上发布 cmets 的人的自动完成建议。您评论的答案/问题的原始海报将始终得到通知。这个meta post 有更多信息。
    猜你喜欢
    • 2023-03-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-03
    相关资源
    最近更新 更多