使用的 Butterfly 版本? | What version of Butterfly are you use?
4.5.4
是否修改过主题文件? || Has the theme files been modified?
不是 (No)
使用的瀏覽器? || What browse are you using?
Chrome
使用的系統? || What operating system are you using?
Windows
問題描述 | Describe the bug
> hexo s
INFO Validating config
ERROR Script load failed: themes\butterfly\scripts\helpers\charts.js
Error: Cannot find module 'cheerio'
Require stack:
- D:\blog2\themes\butterfly\scripts\helpers\charts.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
at Function.Module._load (node:internal/modules/cjs/loader:804:27)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at req (D:\blog2\node_modules\_hexo@6.3.0@hexo\lib\hexo\index.js:292:23)
at D:\blog2\themes\butterfly\scripts\helpers\charts.js:1:82
at D:\blog2\node_modules\_hexo@6.3.0@hexo\lib\hexo\index.js:305:14
at tryCatcher (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:729:18)
at _drainQueueStep (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:93:12)
at _drainQueue (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:86:9)
at Async._drainQueues (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:15:14)
at processImmediate (node:internal/timers:466:21)
INFO
===================================================================
##### # # ##### ##### ###### ##### ###### # # #
# # # # # # # # # # # # #
##### # # # # ##### # # ##### # #
# # # # # # # ##### # # #
# # # # # # # # # # # #
##### #### # # ###### # # # ###### #
4.5.1
===================================================================
INFO Start processing
INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
ERROR Render HTML failed: index.html
TypeError: Cannot read properties of undefined (reading 'map')
at Hexo.<anonymous> (D:\blog2\themes\butterfly\scripts\helpers\random.js:12:31)
at Hexo.tryCatcher (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\util.js:16:23)
at Hexo.<anonymous> (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\method.js:15:34)
at D:\blog2\node_modules\_hexo@6.3.0@hexo\lib\extend\filter.js:67:52
at tryCatcher (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\util.js:16:23)
at Object.gotValue (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\reduce.js:166:18)
at Object.gotAccum (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\reduce.js:155:25)
at Object.tryCatcher (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:729:18)
at _drainQueueStep (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:93:12)
at _drainQueue (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:86:9)
at Async._drainQueues (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:15:14)
at processImmediate (node:internal/timers:466:21)
Unhandled rejection TypeError: Cannot read properties of undefined (reading 'map')
at Hexo.<anonymous> (D:\blog2\themes\butterfly\scripts\helpers\random.js:12:31)
at Hexo.tryCatcher (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\util.js:16:23)
at Hexo.<anonymous> (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\method.js:15:34)
at D:\blog2\node_modules\_hexo@6.3.0@hexo\lib\extend\filter.js:67:52
at tryCatcher (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\util.js:16:23)
at Object.gotValue (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\reduce.js:166:18)
at Object.gotAccum (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\reduce.js:155:25)
at Object.tryCatcher (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:729:18)
at _drainQueueStep (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:93:12)
at _drainQueue (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:86:9)
at Async._drainQueues (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (D:\blog2\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:15:14)
at processImmediate (node:internal/timers:466:21)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
使用的 Butterfly 版本? | What version of Butterfly are you use?
4.5.4
是否修改过主题文件? || Has the theme files been modified?
不是 (No)
使用的瀏覽器? || What browse are you using?
Chrome
使用的系統? || What operating system are you using?
Windows
問題描述 | Describe the bug
出現問題網站 | Website
no