How to upgrade the node

Creating a discord embed this happened

/rbd/pnpm-volume/d72f4cb2-7691-4d9d-a9c6-e3acd8218e1b/node_modules/.registry.npmjs.org/discord.js/12.2.0/node_modules/discord.js/src/structures/MessageEmbed.js:443
      .flat(2)
       ^
TypeError: fields.flat is not a function

Someone told me to upgrade the Node, and have never payed attention to this, never caused me problems, but now i think it did: Each time I open console this appears

Could not find Node null, using Node 10

Hi there @AylanJ123!
Here’s what you need to add to your package.json file:

{ "engines" : { "node" : "12.x" } }

Hope this helps :slight_smile:
Eddie

2 Likes