0

hexo博客在generate时产生error

显示每个md文件都ERROR Process failed
举_post中的一个文件为例

ERROR Process failed: _posts/01.md
TypeError: (name || "").toLowerCase is not a function
    at normalizeName (F:\MyHexo\node_modules\moment-timezone\moment-timezone.js:382:23)
    at Function.getZone [as zone] (F:\MyHexo\node_modules\moment-timezone\moment-timezone.js:404:10)
    at Object.exports.timezone (F:\MyHexo\node_modules\hexo\lib\plugins\processor\common.js:43:28)
    at Promise.all.spread (F:\MyHexo\node_modules\hexo\lib\plugins\processor\post.js:78:42)
    at tryCatcher (F:\MyHexo\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (F:\MyHexo\node_modules\bluebird\js\release\promise.js:544:35)
    at Promise._settlePromise (F:\MyHexo\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (F:\MyHexo\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise._settlePromises (F:\MyHexo\node_modules\bluebird\js\release\promise.js:729:18)
    at Promise._fulfill (F:\MyHexo\node_modules\bluebird\js\release\promise.js:673:18)
    at PromiseArray._resolve (F:\MyHexo\node_modules\bluebird\js\release\promise_array.js:127:19)
    at PromiseArray._promiseFulfilled (F:\MyHexo\node_modules\bluebird\js\release\promise_array.js:145:14)
    at PromiseArray._iterate (F:\MyHexo\node_modules\bluebird\js\release\promise_array.js:115:31)
    at PromiseArray.init [as _init] (F:\MyHexo\node_modules\bluebird\js\release\promise_array.js:79:10)
    at Promise._settlePromise (F:\MyHexo\node_modules\bluebird\js\release\promise.js:601:21)
    at Promise._settlePromise0 (F:\MyHexo\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise._settlePromises (F:\MyHexo\node_modules\bluebird\js\release\promise.js:729:18)
    at Promise._fulfill (F:\MyHexo\node_modules\bluebird\js\release\promise.js:673:18)
    at PromiseArray._resolve (F:\MyHexo\node_modules\bluebird\js\release\promise_array.js:127:19)
    at PromiseArray._promiseFulfilled (F:\MyHexo\node_modules\bluebird\js\release\promise_array.js:145:14)
    at Promise._settlePromise (F:\MyHexo\node_modules\bluebird\js\release\promise.js:609:26)
    at Promise._settlePromise0 (F:\MyHexo\node_modules\bluebird\js\release\promise.js:649:10)

但错误的不止post,还有其他md

ERROR Process failed: lab/index.md
TypeError: (name || "").toLowerCase is not a function

最后有一段

FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Template render error: (unknown path) [Line 8, Column 25]
  Error: Unable to call `the return value of (posts["first"])["updated"]["toISOString"]`, which is undefined or falsey

我觉得应该不是md语法的锅,因为错误发生前我正常发布了一篇文章。等机子休眠后今天再打开,就出现了这种错误。
小弟作为新手真的找不出问题在哪,求各位大神指点!

whyvev 1
10月9日提问
0 个回答

撰写答案

推广链接