Node modules error!

Error log;

/rbd/pnpm-volume/916762b2-5501-4cab-93ba-4e30c25d5df1/node_modules/.registry.npmjs.org/discord.js/12.0.1/node_modules/discord.js/src/client/Client.js:40

add error log;

} catch {

11:55 PM

^

11:55 PM

11:55 PM

SyntaxError: Unexpected token {

Hi @RikiSensei26,

When you catch an error, you need to catch the error object as well- the code should read } catch (error) { to run properly. Hope this helps!

How do i do it buddy can you help me?

It looks like I was wrong- this error is happening because your version of Node.js is out of date. In package.json, make sure you have the correct node version:

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