node.js - hexo generate遇到了问题 Template render error
PHP中文网
PHP中文网 2017-04-17 13:02:41
0
4
1221

这个错误很磨人啊 我卸载了hexo重新安装 如果new文章就会出现 不知道为何
报错信息如下:
<pre>FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: unknown block tag: ld

at Error.exports.TemplateError (/Users/wsgdrfz/blog/node_modules/nunjucks/src/lib.js:51:19)
at Object.extend.fail (/Users/wsgdrfz/blog/node_modules/nunjucks/src/parser.js:64:15)
at Object.extend.parseStatement (/Users/wsgdrfz/blog/node_modules/nunjucks/src/parser.js:544:18)
at Object.extend.parseNodes (/Users/wsgdrfz/blog/node_modules/nunjucks/src/parser.js:1151:30)
at Object.extend.parseAsRoot (/Users/wsgdrfz/blog/node_modules/nunjucks/src/parser.js:1177:42)
at Object.module.exports.parse (/Users/wsgdrfz/blog/node_modules/nunjucks/src/parser.js:1199:18)
at Object.module.exports.compile (/Users/wsgdrfz/blog/node_modules/nunjucks/src/compiler.js:1118:48)
at Obj.extend._compile (/Users/wsgdrfz/blog/node_modules/nunjucks/src/environment.js:444:35)
at Obj.extend.compile (/Users/wsgdrfz/blog/node_modules/nunjucks/src/environment.js:433:18)
at null.<anonymous> (/Users/wsgdrfz/blog/node_modules/nunjucks/src/environment.js:378:22)
at Object.exports.withPrettyErrors (/Users/wsgdrfz/blog/node_modules/nunjucks/src/lib.js:24:16)
at Obj.extend.render (/Users/wsgdrfz/blog/node_modules/nunjucks/src/environment.js:374:20)
at Obj.extend.renderString (/Users/wsgdrfz/blog/node_modules/nunjucks/src/environment.js:261:21)
at /Users/wsgdrfz/blog/node_modules/hexo/lib/extend/tag.js:56:9
at tryCatcher (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/util.js:26:23)
at Promise._resolveFromResolver (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/promise.js:480:31)
at new Promise (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/promise.js:70:37)
at Tag.render (/Users/wsgdrfz/blog/node_modules/hexo/lib/extend/tag.js:55:10)
at Object.tagFilter [as onRenderEnd] (/Users/wsgdrfz/blog/node_modules/hexo/lib/hexo/post.js:253:16)
at /Users/wsgdrfz/blog/node_modules/hexo/lib/hexo/render.js:55:19
at tryCatcher (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/promise.js:507:31)
at Promise._settlePromiseAt (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/promise.js:581:18)
at Promise._settlePromises (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/promise.js:697:14)
at Async._drainQueue (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/wsgdrfz/blog/node_modules/bluebird/js/main/async.js:15:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
</pre><code>
PHP中文网
PHP中文网

认证0级讲师

全部回复(4)
巴扎黑
Template render error: unknown block tag: ld

你的MD文件里是不是有ld这个标签?

巴扎黑

请问你找到答案了么?我也碰到这样的错误了

FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.htm
l
Template render error: unknown block tag: gp

at Error.exports.TemplateError (E:\my_files\git\csuldw.github.io\node_modules\hexo\node_modules\nu

njuckssrclib.js:51:19)

at Object.extend.fail (E:\my_files\git\csuldw.github.io\node_modules\hexo\node_modules\nunjucks\sr

cparser.js:64:15)

at Object.extend.parseStatement (E:\my_files\git\csuldw.github.io\node_modules\hexo\node_modules\n

unjuckssrcparser.js:544:18)

洪涛

我出现这个情况是由于,我先加了一个MD文件,我把这个MD文件删了之后,从新部署就正确了,可以肯定的是MD文件 出的问题 包含了PK

Template render error: (unknown path) [Line 16, Column 137]
  unknown block tag: PK
    at Object.exports.prettifyError (/Users/Administrator/emptywalker.github.io/node_modules/nunjucks/src/lib.js:34:15)
迷茫

<p ng-controller = 'child1'>

    <input type="text" ng-model = 'info.name'/>
    child:`{{info.name}}`
    age :`{{info.age}}`

</p>

在模板语法两边用 进行注释即可 ESC下面的键

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板