node.js v.20.0.0
hexo 7.1.1
首先遇到了require('hexo-log')()报错问题,直接将其注释掉之后将log改为console可以正常进行摘要生成
但是生成之后会报错如下:
SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
at JSON.parse ()
at parseJSONFromBytes (node:internal/deps/undici/undici:6571:19)
at successSteps (node:internal/deps/undici/undici:6545:27)
at node:internal/deps/undici/undici:1211:60
at node:internal/process/task_queues:140:7
at AsyncResource.runInAsyncScope (node:async_hooks:206:9)
at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
未排查到报错点
node.js v.20.0.0 hexo 7.1.1 首先遇到了require('hexo-log')()报错问题,直接将其注释掉之后将log改为console可以正常进行摘要生成 但是生成之后会报错如下: SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON at JSON.parse ()
at parseJSONFromBytes (node:internal/deps/undici/undici:6571:19)
at successSteps (node:internal/deps/undici/undici:6545:27)
at node:internal/deps/undici/undici:1211:60
at node:internal/process/task_queues:140:7
at AsyncResource.runInAsyncScope (node:async_hooks:206:9)
at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
未排查到报错点