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?
8 Replies
Using node version: v16.13.0
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
?^
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>
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
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 BUbuntu repositories ship very old Node.js versions
You either use nodesources or another node vm solution
Alright thanks everyone
infact I am using v16.6.2 💀
idk how I didn't notice lol
thanks guys