Problem making Discord Bot

Hi, I’m trying to do my first discord bot, and I have followed a simple tutorial. I made 3 .js files (auth, bot and package). On cmd, I used two commands:
“npm install winston –save” and “npm install

All ran correctly, until I used the “node bot.js” command to execute the bot, here an error ocurred. Here is what dropped on cmd:
SyntaxError: Invalid or unexpected token
←[90m at Object.compileFunction (node:vm:352:18)←[39m
←[90m at wrapSafe (node:internal/modules/cjs/loader:1033:15)←[39m
←[90m at Module._compile (node:internal/modules/cjs/loader:1069:27)←[39m
←[90m at Object.Module._extensions…js (node:internal/modules/cjs/loader:1159:10)←[39m
←[90m at Module.load (node:internal/modules/cjs/loader:981:32)←[39m
←[90m at Function.Module._load (node:internal/modules/cjs/loader:822:12)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)←[39m
←[90m at node:internal/main/run_main_module:17:47←[39m

Welcome to the GitHub community, @ShiroCruck :tada: ! We’re happy you’re here. You are more likely to get a useful response if you are posting your question(s) in the applicable category. I’ve gone ahead and moved it for you. Good luck!

1 Like

This post was flagged by the community and is temporarily hidden.

Download the latest version of nodes and use the more popular package Installing Node.js and discord.js | discord.js Guide