**H:\hexo>hexo init myblog** INFO Cloning hexo-starter to H:\hexo\myblog Cloning into 'H:\hexo\myblog'... remote: Counting objects: 59, done. remote: Total 59 (delta 0), reused 0 (delta 0), pack-reused 59 Unpacking objects: 100% (59/59), done. Submodule 'themes/landscape' (https://github.com/hexojs/hexo-theme-landscape.git) registered for path 'themes/landscape' Cloning into 'H:/hexo/myblog/themes/landscape'... remote: Counting objects: 785, done. remote: Total 785 (delta 0), reused 0 (delta 0), pack-reused 784 Receiving objects: 100% (785/785), 2.54 MiB | 476.00 KiB/s, done. Resolving deltas: 100% (403/403), done. Submodule path 'themes/landscape': checked out 'decdc2d9956776cbe95420ae94bac87e22468d38' INFO Install dependencies 错误: 找不到或无法加载主类 install INFO Start blogging with Hexo!
**H:\hexo>cd hexo**
**H:\hexo\hexo>hexo g** INFO Start processing FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html Template render error: (unknown path) [Line 8, Column 23] Error: Unable to call `the return value of (posts["first"])["updated"]["toISOString"]`, which is undefined or falsey at Object.exports.prettifyError (H:\hexo\hexo\node_modules\_nunjucks@3.0.1@nunjucks\src\lib.js:34:15) at H:\hexo\hexo\node_modules\_nunjucks@3.0.1@nunjucks\src\environment.js:489:31 at new_cls.root [as rootRenderFunc] (eval at _compile (H:\hexo\hexo\node_modules\_nunjucks@3.0.1@nunjucks\src\environment.js:568:24), <anonymous> 210:3) at new_cls.render (H:\hexo\hexo\node_modules\_nunjucks@3.0.1@nunjucks\src\environment.js:482:15) at Hexo.module.exports (H:\hexo\hexo\node_modules\_hexo-generator-feed@1.2.2@hexo-generator-feed\lib\generator.js:40:22) at Hexo.tryCatcher (H:\hexo\hexo\node_modules\_bluebird@3.5.1@bluebird\js\release\util.js:16:23) at Hexo.<anonymous> (H:\hexo\hexo\node_modules\_bluebird@3.5.1@bluebird\js\release\method.js:15:34) at H:\hexo\hexo\node_modules\_hexo@3.4.0@hexo\lib\hexo\index.js:340:24 at tryCatcher (H:\hexo\hexo\node_modules\_bluebird@3.5.1@bluebird\js\release\util.js:16:23) at MappingPromiseArray._promiseFulfilled (H:\hexo\hexo\node_modules\_bluebird@3.5.1@bluebird\js\release\map.js:61:38) at MappingPromiseArray.PromiseArray._iterate (H:\hexo\hexo\node_modules\_bluebird@3.5.1@bluebird\js\release\promise_array.js:114:31) at MappingPromiseArray.init (H:\hexo\hexo\node_modules\_bluebird@3.5.1@bluebird\js\release\promise_array.js:78:10) at MappingPromiseArray._asyncInit (H:\hexo\hexo\node_modules\_bluebird@3.5.1@bluebird\js\release\map.js:30:10) at Async._drainQueue (H:\hexo\hexo\node_modules\_bluebird@3.5.1@bluebird\js\release\async.js:138:12) at Async._drainQueues (H:\hexo\hexo\node_modules\_bluebird@3.5.1@bluebird\js\release\async.js:143:10) at Immediate.Async.drainQueues (H:\hexo\hexo\node_modules\_bluebird@3.5.1@bluebird\js\release\async.js:17:14) at runCallback (timers.js:789:20) at tryOnImmediate (timers.js:751:5) at processImmediate [as _immediateCallback] (timers.js:722:5)
**H:\hexo\hexo>cd ..**
**H:\hexo>cd myblog**
**H:\hexo\myblog>hexo g** ERROR Local hexo not found in H:\hexo\myblog ERROR Try running: 'npm install hexo --save'
**H:\hexo\myblog>cnpm install** | [8/9] Installing cssom@0.3.xplatform unsupported hexo@3.4.0 › hexo-fs@0.2.2 › chokidar@1.7.0 › fsevents@^1.0.0 Package require os(darwin) not compa ible with your platform(win32) [fsevents@^1.0.0] optional install error: Package require os(darwin) not compatible with your platform(win32) √ Installed 9 packages √ Linked 274 latest versions
**H:\hexo\myblog>hexo g** INFO Start processing INFO Files loaded in 207 ms INFO Generated: index.html INFO Generated: archives/index.html INFO Generated: fancybox/blank.gif INFO Generated: archives/2017/11/index.html INFO Generated: fancybox/fancybox_sprite.png INFO Generated: fancybox/jquery.fancybox.css INFO Generated: fancybox/fancybox_sprite@2x.png INFO Generated: fancybox/fancybox_loading.gif INFO Generated: fancybox/fancybox_loading@2x.gif INFO Generated: fancybox/jquery.fancybox.pack.js INFO Generated: fancybox/jquery.fancybox.js INFO Generated: archives/2017/index.html INFO Generated: fancybox/fancybox_overlay.png INFO Generated: css/fonts/FontAwesome.otf INFO Generated: fancybox/helpers/jquery.fancybox-buttons.css INFO Generated: fancybox/helpers/jquery.fancybox-thumbs.css INFO Generated: js/script.js INFO Generated: css/fonts/fontawesome-webfont.eot INFO Generated: css/fonts/fontawesome-webfont.woff INFO Generated: css/style.css INFO Generated: fancybox/helpers/fancybox_buttons.png INFO Generated: fancybox/helpers/jquery.fancybox-thumbs.js INFO Generated: fancybox/helpers/jquery.fancybox-buttons.js INFO Generated: fancybox/helpers/jquery.fancybox-media.js INFO Generated: 2017/11/05/hello-world/index.html INFO Generated: css/fonts/fontawesome-webfont.svg INFO Generated: css/fonts/fontawesome-webfont.ttf INFO Generated: css/images/banner.jpg INFO 28 files generated in 546 ms
**H:\hexo\myblog>hexo s** INFO Start processing INFO Hexo is running at http://localhost:4000/. Press Ctrl+C to stop.