Node modules error!

Error log;


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"