'hexo generate && hexo deploy' 结果错误

Error in the results of 'hexo generate && hexo deploy'

在我输入之后:$ 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)

可能在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、CI 由 AppVeyor 构建)。 并且源文件在那里

我将添加一个关于如何使用hexo和github建立个人博客的博客,以及如何通过第三个服务使其auto-deploy(CI,在wiki中搜索它)例如AppVeyor 和特拉维斯 CI.