ChatGPT-wechat-bot
ChatGPT-wechat-bot copied to clipboard
报错timestamp ??= 0; 是为啥呀
为什么我在进行 node lib/bundle.esm.js 时会报如下的错误? 无论是是在我的电脑上(Windows)还是服务器上(树莓派)都是这样
root@raspberrypi:/www/wwwroot/ChatGPT-wechat-bot# node lib/bundle.esm.js
file:///www/wwwroot/ChatGPT-wechat-bot/node_modules/wechaty-puppet-service/dist/esm/src/client/puppet-service.js:1148
timestamp ??= 0;
^^^
SyntaxError: Unexpected token '??='
同样的问题
lib/bundle.esm.js 我没有这个文件
是因为nodejs版本太低
同样的问题
是版本问题,需要将Nodejs版本升级到16.8以上