> hexo s
INFO Validating config
ERROR Script load failed: themes\ylion\scripts\generator\index.js
TypeError: Cannot set properties of undefined (setting 'cdata')
at Object.<anonymous> (D:\ecxproject\themes\ylion\scripts\generator\lib\generator.js:5:19)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at req (D:\ecxproject\node_modules\_hexo@6.3.0@hexo\lib\hexo\index.js:292:23)
at D:\ecxproject\themes\ylion\scripts\generator\index.js:19:42
at D:\ecxproject\node_modules\_hexo@6.3.0@hexo\lib\hexo\index.js:305:14
at tryCatcher (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:729:18)
at _drainQueueStep (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:93:12)
at _drainQueue (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:86:9)
at Async._drainQueues (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:15:14)
at processImmediate (node:internal/timers:466:21)
ERROR Script load failed: themes\ylion\scripts\generator\lib\generator.js
TypeError: Cannot set properties of undefined (setting 'cdata')
at D:\ecxproject\themes\ylion\scripts\generator\lib\generator.js:5:19
at D:\ecxproject\node_modules\_hexo@6.3.0@hexo\lib\hexo\index.js:305:14
at tryCatcher (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\promise.js:729:18)
at _drainQueueStep (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:93:12)
at _drainQueue (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:86:9)
at Async._drainQueues (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (D:\ecxproject\node_modules\_bluebird@3.7.2@bluebird\js\release\async.js:15:14)
at processImmediate (node:internal/timers:466:21)
INFO Start processing
INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
更换该主题后运行
hexo s
发生报错访问localhost:4000,效果为![image](https://user-images.githubusercontent.com/110729988/212824589-b4a90425-5495-4481-9028-2da7611b47ef.png)