Skip to content
← Back to Community
the bot wont to run it says unxpected token
Profile icon
mokagamer6

so when i press run there is an error appears please i want to solve fast
pls help pls

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
mokagamer6
Comments
hotnewtop
Profile icon
Coder100

Node uses discord.js v14 instead of v12. Replit node can't support that version.

Fix

change your .replit file to this:

run = "npm i [email protected] ; node bot.js"

Other solution

Open the shell:

image

then type in:

image

Profile icon
mokagamer6

@Coder100 Thanks so much you helped me alot

Profile icon
Coder100
Profile icon
mokagamer6

pls help fast

Profile icon
SixBeeps

@mokagamer6 For future reference, asking for help quickly doesn't really change how fast you get a response. Better to ask in the Discord if it's urgent.