输入后:$ hexo生成&& hexo部署
我得到了这个信息,没有任何错误的原因。
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)发布于 2017-08-05 07:49:32
在npm install或npm install -g hexo-cli过程中可能会出现一些错误。除了重新安装hexo环境之外,没有其他方法。
步骤:
cd D:\hexo\blog和npm uninstall hexocd D:\hexo和rm -rf blognpm install -g hexo-clihexo init blognpm installnpm install hexo-deployer-git --savehexo d -g如果hexo再次出现部署错误,可以重新安装nodejs和npm,并将nodejs更新为最新版本(nodejs并不总是可靠的)。
您可以扫描我的博客 (通过AppVeyor使用hexo和github,CI构建)。源文件在那里

我将添加一个博客,介绍如何使用hexo和github构建个人博客,以及如何通过第三个服务(如AppVeyor和Travis )使其自动部署( CI,在wiki中搜索)。
https://stackoverflow.com/questions/45255455
复制相似问题