'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 install
或npm install -g hexo-cli
的过程中出现了一些错误。没有办法只能重新安装hexo的环境
步骤:
cd D:\hexo\blog
和 npm uninstall hexo
cd D:\hexo
和 rm -rf blog
npm install -g hexo-cli
hexo init blog
npm install
npm install hexo-deployer-git --save
hexo d -g
如果hexo deploy再次报错,可以重新安装nodejs和npm,更新nodejs到最新版本(nodejs并不总是可靠的)
您可以扫描 my Blog(使用 hexo 和 github、CI 由 AppVeyor 构建)。
并且源文件在那里
我将添加一个关于如何使用hexo和github建立个人博客的博客,以及如何通过第三个服务使其auto-deploy(CI,在wiki中搜索它)例如AppVeyor 和特拉维斯 CI.
在我输入之后:$ 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 install
或npm install -g hexo-cli
的过程中出现了一些错误。没有办法只能重新安装hexo的环境
步骤:
cd D:\hexo\blog
和npm uninstall hexo
cd D:\hexo
和rm -rf blog
npm install -g hexo-cli
hexo init blog
npm install
npm install hexo-deployer-git --save
hexo d -g
如果hexo deploy再次报错,可以重新安装nodejs和npm,更新nodejs到最新版本(nodejs并不总是可靠的)
您可以扫描 my Blog(使用 hexo 和 github、CI 由 AppVeyor 构建)。
并且源文件在那里
我将添加一个关于如何使用hexo和github建立个人博客的博客,以及如何通过第三个服务使其auto-deploy(CI,在wiki中搜索它)例如AppVeyor 和特拉维斯 CI.