I am trying to create a discord bot following this tutorial. However, when I try to deploy the bot using npm run dev
I get
my-bot@1.0.0 dev /mnt/c/Users/kkmin/Documents/src/ees
nodemon index.js
[nodemon] 1.19.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching dir(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node index.js`
/mnt/c/Users/kkmin/Documents/src/ees/node_modules/discord.js/src/client/Client.js:40
} catch {
^
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/mnt/c/Users/kkmin/Documents/src/ees/node_modules/discord.js/src/index.js:8:11)
[nodemon] app crashed - waiting for file changes before starting...
I'm not sure what's wrong, and I'm very new to this, could someone please help me. Thanks in advance!