使用hexo generate
命令时报错:
INFO Start processing
FATAL Something''s wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: Error: expected end of comment, got end of file
at Object._prettifyError (/web/hexo/node_modules/nunjucks/src/lib.js:35:11)
at Template.render (/web/hexo/node_modules/nunjucks/src/environment.js:526:21)
at Environment.renderString (/web/hexo/node_modules/nunjucks/src/environment.js:364:17)
at /web/hexo/node_modules/hexo/lib/extend/tag.js:66:9
at Promise._execute(/web/hexo/node_modules/bluebird/js/release/debuggability.js:303:9)
at Promise._resolveFromExecutor (/web/hexo/node_modules/bluebird/js/release/promise.js:483:18)
at new Promise (/web/hexo/node_modules/bluebird/js/release/promise.js:79:10)
at Tag.render (/web/hexo/node_modules/hexo/lib/extend/tag.js:64:10)
at Object.tagFilter [as onRenderEnd] (/web/hexo/node_modules/hexo/lib/hexo/post.js:266:16)
at /web/hexo/node_modules/hexo/lib/hexo/render.js:65:19
at tryCatcher (/web/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/web/hexo/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/web/hexo/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/web/hexo/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/web/hexo/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/web/hexo/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/web/hexo/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (/web/hexo/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:794:20)
at tryOnImmediate (timers.js:752:5)
at processImmediate [as _immediateCallback] (timers.js:729:5)
二、原因及解决方案
参考文档
Template Designer Documentation
Some file cause this Error: expected end of comment, got end of file #2904
此处评论已关闭