hexo 报错 -- TypeError: Cannot read property 'removeAttr' of undefined

报错前执行的清除操作

$ hexo clean

报错内容

update link as:-->/.com//image-20200302204238083.png
update link as:-->/.com//%E8%87%AA%E5%8A%A8%E6%B3%A8%E5%86%8C02.png
update link as:-->/.com//image-20200302204238083.png
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
TypeError: Cannot read property 'removeAttr' of undefined
    at Node.<anonymous> (F:\MyBlog-onelpc\themes\Butterfly\scripts\post-lazyload.js:17:31)
    at initialize.exports.each (F:\MyBlog-onelpc\node_modules\cheerio\lib\api\traversing.js:300:24)
    at Hexo.<anonymous> (F:\MyBlog-onelpc\themes\Butterfly\scripts\post-lazyload.js:15:10)
    at Hexo.tryCatcher (F:\MyBlog-onelpc\node_modules\bluebird\js\release\util.js:16:23)
    at Hexo.<anonymous> (F:\MyBlog-onelpc\node_modules\bluebird\js\release\method.js:15:34)
    at F:\MyBlog-onelpc\node_modules\hexo\lib\extend\filter.js:62:52
    at tryCatcher (F:\MyBlog-onelpc\node_modules\bluebird\js\release\util.js:16:23)
    at Object.gotValue (F:\MyBlog-onelpc\node_modules\bluebird\js\release\reduce.js:166:18)
    at Object.gotAccum (F:\MyBlog-onelpc\node_modules\bluebird\js\release\reduce.js:155:25)
    at Object.tryCatcher (F:\MyBlog-onelpc\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (F:\MyBlog-onelpc\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (F:\MyBlog-onelpc\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (F:\MyBlog-onelpc\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise._settlePromises (F:\MyBlog-onelpc\node_modules\bluebird\js\release\promise.js:729:18)
    at _drainQueueStep (F:\MyBlog-onelpc\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (F:\MyBlog-onelpc\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (F:\MyBlog-onelpc\node_modules\bluebird\js\release\async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (F:\MyBlog-onelpc\node_modules\bluebird\js\release\async.js:15:14)
    at processImmediate (internal/timers.js:439:21)

解决方法

出现原因:因为之前的md文章中有些图片引用失效。
解决方法:重新对失效的图片引用了正确的路径。

posted @ 2020-05-18 21:08  OneLpc  阅读(187)  评论(0编辑  收藏