AutumnWhj / ChatGPT-wechat-bot

ChatGPT for wechat https://github.com/AutumnWhj/ChatGPT-wechat-bot
MIT License
4.67k stars 981 forks source link

启动失败 #181

Closed x-saofen closed 1 year ago

x-saofen commented 1 year ago

node v16.17

npm run dev

(node:12339) ExperimentalWarning: Custom ESM Loaders 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:///usr/local/ChatGPT-wechat-bot-master/node_modules/chatgpt/src/fetch.ts:6:9 at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0) at async ESMLoader.import (node:internal/modules/esm/loader:533:24) at async loadESM (node:internal/process/esm_loader:91:5) at async handleMainPromise (node:internal/modules/run_main:65:12)

atifnimran commented 1 year ago

Ok