{"action":"created","issue":{"url":"https://api.github.com/repos/hexojs/hexo/issues/2026","repository_url":"https://api.github.com/repos/hexojs/hexo","labels_url":"https://api.github.com/repos/hexojs/hexo/issues/2026/labels{/name}","comments_url":"https://api.github.com/repos/hexojs/hexo/issues/2026/comments","events_url":"https://api.github.com/repos/hexojs/hexo/issues/2026/events","html_url":"https://github.com/hexojs/hexo/issues/2026","id":163097582,"number":2026,"title":"从hexo3.1.1升级到3.2.2之后出错","user":{"login":"jintangWang","id":12557847,"avatar_url":"https://avatars.githubusercontent.com/u/12557847?v=3","gravatar_id":"","url":"https://api.github.com/users/jintangWang","html_url":"https://github.com/jintangWang","followers_url":"https://api.github.com/users/jintangWang/followers","following_url":"https://api.github.com/users/jintangWang/following{/other_user}","gists_url":"https://api.github.com/users/jintangWang/gists{/gist_id}","starred_url":"https://api.github.com/users/jintangWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jintangWang/subscriptions","organizations_url":"https://api.github.com/users/jintangWang/orgs","repos_url":"https://api.github.com/users/jintangWang/repos","events_url":"https://api.github.com/users/jintangWang/events{/privacy}","received_events_url":"https://api.github.com/users/jintangWang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-30T07:20:53Z","updated_at":"2016-06-30T08:31:43Z","closed_at":null,"body":"要在新电脑上重新搭建博客环境,但是clone之后重新使用hexo命令时出错了,问题有2,如下:\r\n\r\n1.  `hexo server`时报ymlException,发现是主题next的问题,先使用默认的landscape主题,然后报问题2\r\n2.  `npm install`之后, `hexo server`报错如下:\r\n\r\n`FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html\r\nTemplate render error: (unknown path) [Line 4, Column 40]\r\n  unexpected token: }}\r\n    at Object.exports.prettifyError (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/nunjucks/src/lib.js:34:15)\r\n    at Obj.extend.render (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/nunjucks/src/environment.js:468:27)\r\n    at Obj.extend.renderString (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/nunjucks/src/environment.js:326:21)\r\n    at /home/tang/blog_test/jintang.github.io/node_modules/hexo/lib/extend/tag.js:66:9\r\n    at Promise._execute (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/debuggability.js:272:9)\r\n    at Promise._resolveFromExecutor (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:475:18)\r\n    at new Promise (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:77:14)\r\n    at Tag.render (/home/tang/blog_test/jintang.github.io/node_modules/hexo/lib/extend/tag.js:64:10)\r\n    at Object.tagFilter [as onRenderEnd] (/home/tang/blog_test/jintang.github.io/node_modules/hexo/lib/hexo/post.js:253:16)\r\n    at Promise.then.then.then.output (/home/tang/blog_test/jintang.github.io/node_modules/hexo/lib/hexo/render.js:65:19)\r\n    at tryCatcher (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)\r\n    at Promise._settlePromiseFromHandler (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:504:31)\r\n    at Promise._settlePromise (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)\r\n    at Promise._settlePromise0 (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)\r\n    at Promise._settlePromises (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)\r\n    at Async._drainQueue (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/async.js:138:16)\r\n    at Async._drainQueues (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/async.js:148:10)\r\n    at Async.drainQueues (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/async.js:17:14)\r\n    at process._tickCallback (node.js:419:13)\r\nFATAL (unknown path) [Line 4, Column 40]\r\n  unexpected token: }}\r\nTemplate render error: (unknown path) [Line 4, Column 40]\r\n  unexpected token: }}\r\n    at Object.exports.prettifyError (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/nunjucks/src/lib.js:34:15)\r\n    at Obj.extend.render (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/nunjucks/src/environment.js:468:27)\r\n    at Obj.extend.renderString (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/nunjucks/src/environment.js:326:21)\r\n    at /home/tang/blog_test/jintang.github.io/node_modules/hexo/lib/extend/tag.js:66:9\r\n    at Promise._execute (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/debuggability.js:272:9)\r\n    at Promise._resolveFromExecutor (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:475:18)\r\n    at new Promise (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:77:14)\r\n    at Tag.render (/home/tang/blog_test/jintang.github.io/node_modules/hexo/lib/extend/tag.js:64:10)\r\n    at Object.tagFilter [as onRenderEnd] (/home/tang/blog_test/jintang.github.io/node_modules/hexo/lib/hexo/post.js:253:16)\r\n    at Promise.then.then.then.output (/home/tang/blog_test/jintang.github.io/node_modules/hexo/lib/hexo/render.js:65:19)\r\n    at tryCatcher (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)\r\n    at Promise._settlePromiseFromHandler (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:504:31)\r\n    at Promise._settlePromise (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)\r\n    at Promise._settlePromise0 (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)\r\n    at Promise._settlePromises (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)\r\n    at Async._drainQueue (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/async.js:138:16)\r\n    at Async._drainQueues (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/async.js:148:10)\r\n    at Async.drainQueues (/home/tang/blog_test/jintang.github.io/node_modules/hexo/node_modules/bluebird/js/release/async.js:17:14)\r\n    at process._tickCallback (node.js:419:13)\r\n`\r\n于是我将hexo降到3.1.1之后就可以了,但我想用3.2.2的新功能啊,而且为啥next主题不能用了,里面配了很多东西啊.下面是我的电脑环境:\r\n`hexo: 3.2.2\r\nhexo-cli: 1.0.2\r\nos: Linux 4.4.0-28-generic linux x64\r\nhttp_parser: 1.0\r\nnode: 0.10.31\r\nv8: 3.14.5.9\r\nares: 1.9.0-DEV\r\nuv: 0.10.28\r\nzlib: 1.2.3\r\nmodules: 11\r\nopenssl: 1.0.1i\r\n`\r\n先行谢过!!如果有其他建议也是可以的"},"comment":{"url":"https://api.github.com/repos/hexojs/hexo/issues/comments/229596048","html_url":"https://github.com/hexojs/hexo/issues/2026#issuecomment-229596048","issue_url":"https://api.github.com/repos/hexojs/hexo/issues/2026","id":229596048,"user":{"login":"Xuanwo","id":5351546,"avatar_url":"https://avatars.githubusercontent.com/u/5351546?v=3","gravatar_id":"","url":"https://api.github.com/users/Xuanwo","html_url":"https://github.com/Xuanwo","followers_url":"https://api.github.com/users/Xuanwo/followers","following_url":"https://api.github.com/users/Xuanwo/following{/other_user}","gists_url":"https://api.github.com/users/Xuanwo/gists{/gist_id}","starred_url":"https://api.github.com/users/Xuanwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xuanwo/subscriptions","organizations_url":"https://api.github.com/users/Xuanwo/orgs","repos_url":"https://api.github.com/users/Xuanwo/repos","events_url":"https://api.github.com/users/Xuanwo/events{/privacy}","received_events_url":"https://api.github.com/users/Xuanwo/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T08:31:43Z","updated_at":"2016-06-30T08:31:43Z","body":"初步看上去，你的依赖还没有更新。"}}
{"actor":{"display_login":"Xuanwo"}}