报错原因是
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 282, Column 5]
unexpected token: %
at Object._prettifyError (/home/jason/Documents/blogs/node_modules/nunjucks/src/lib.js:36:11)
at Template.render (/home/jason/Documents/blogs/node_modules/nunjucks/src/environment.js:524:21)
at Environment.renderString (/home/jason/Documents/blogs/node_modules/nunjucks/src/environment.js:362:17)
at Promise (/home/jason/Documents/blogs/node_modules/hexo/lib/extend/tag.js:66:9)
at Promise._execute (/home/jason/Documents/blogs/node_modules/bluebird/js/release/debuggability.js:303:9)
at Promise._resolveFromExecutor (/home/jason/Documents/blogs/node_modules/bluebird/js/release/promise.js:483:18)
at new Promise (/home/jason/Documents/blogs/node_modules/bluebird/js/release/promise.js:79:10)
at Tag.render (/home/jason/Documents/blogs/node_modules/hexo/lib/extend/tag.js:64:10)
at Object.tagFilter [as onRenderEnd] (/home/jason/Documents/blogs/node_modules/hexo/lib/hexo/post.js:230:16)
at Promise.then.then.result (/home/jason/Documents/blogs/node_modules/hexo/lib/hexo/render.js:65:19)
at tryCatcher (/home/jason/Documents/blogs/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/jason/Documents/blogs/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/home/jason/Documents/blogs/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/home/jason/Documents/blogs/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/jason/Documents/blogs/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/home/jason/Documents/blogs/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/home/jason/Documents/blogs/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/home/jason/Documents/blogs/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:696:18)
at tryOnImmediate (timers.js:667:5)
at processImmediate (timers.js:649:5)
something is wrong。这个报错理由真的任性
搞了一个下午,最开始以为是图片的原因,最后发现不是。
debug过程中发现npm似乎出现了问题,重新安装了一遍。
在设置代理的过程中,发现设置淘宝代理和之前设置的polipo的socks代理似乎存在冲突(在我的Ubuntu上是这样的)。当后台运行polipo时,无法实现npm的走淘宝源进行安装插件
最后发现原因是博客写的有问题。。。。。。。。。。。。。。。。。。。。
在.md文件中,由于我在写笔记时用到了{{}},并且没有将{{}}放在代码块里,所以在hexo生成templates时会出现问题。
好了,就是这么简单,傻逼的问题。知道真相的我眼泪掉下来。
hexo g 或者 hexo s 报错FATAL Something's wrong.
原文:https://www.cnblogs.com/jason233wang/p/12203129.html