首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >“hexo生成&hexo部署”结果中的错误

“hexo生成&hexo部署”结果中的错误
EN

Stack Overflow用户
提问于 2017-07-22 14:06:22
回答 1查看 307关注 0票数 0

输入后:$ hexo生成&& hexo部署

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

代码语言:javascript
复制
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)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-08-05 07:49:32

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再次出现部署错误,可以重新安装nodejs和npm,并将nodejs更新为最新版本(nodejs并不总是可靠的)。

您可以扫描我的博客 (通过AppVeyor使用hexo和github,CI构建)。源文件在那里

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45255455

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档