NodeJS version too low for DiscordJS

I keep getting this error when I try start the bot on my Ubuntu server but everything works fine locally, is there something I missed with the new update?
No description
8 Replies
D24
D24OP•2y ago
Using node version: v16.13.0
kyra
kyra•2y ago
You're not using v16.13.0 at all in your Ubuntu server. Chances are that you're running Node with a much older version instead. Can you run node -v?
drainpixie
drainpixie•2y ago
^ Even if you were using v16, it's outdated, you should switch to v18 which is LTS Object.hasOwn is available only in node v16.9>
kyra
kyra•2y ago
I mean, Ubuntu can be very horrible in version management. For Node.js versions, you should always use Volta (https://volta.sh) if not Docker docker
Favna
Favna•2y ago
Also depending on how you run the process at all you may have 2 different versions of Node installed and node -v is using A whereas what you run uses B
drainpixie
drainpixie•2y ago
Ubuntu repositories ship very old Node.js versions You either use nodesources or another node vm solution
D24
D24OP•2y ago
Alright thanks everyone infact I am using v16.6.2 💀 idk how I didn't notice lol thanks guys
Want results from more Discord servers?
Add your server