Debugger listening on ws://127.0.0.1:9229/18b3042a-ed92-4be0-a0c4-cd07431f25f6
For help, see: https://nodejs.org/en/docs/inspector
(node:7981) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
(Use node --trace-warnings ... to show where the warning was created)
Error: Invalid environment: global fetch not defined
at file:///www/wwwroot/ChatGPT-wechat-bot/node_modules/chatgpt/src/fetch.ts:6:9
at ModuleJob.run (node:internal/modules/esm/module_job:183:25)
at async Loader.import (node:internal/modules/esm/loader:178:24)
at async Object.loadESM (node:internal/process/esm_loader:68:5)
at async handleMainPromise (node:internal/modules/run_main:63:12)
node -v 16.9.0 npm -v 9.4.1
please help me,thanks
Debugger listening on ws://127.0.0.1:9229/18b3042a-ed92-4be0-a0c4-cd07431f25f6 For help, see: https://nodejs.org/en/docs/inspector (node:7981) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time (Use
node --trace-warnings ...
to show where the warning was created) Error: Invalid environment: global fetch not defined at file:///www/wwwroot/ChatGPT-wechat-bot/node_modules/chatgpt/src/fetch.ts:6:9 at ModuleJob.run (node:internal/modules/esm/module_job:183:25) at async Loader.import (node:internal/modules/esm/loader:178:24) at async Object.loadESM (node:internal/process/esm_loader:68:5) at async handleMainPromise (node:internal/modules/run_main:63:12) node -v 16.9.0 npm -v 9.4.1 please help me,thanks