Ask coding questions

← Back to all posts
Node issues
imjustcat

So when I update my node to 16. It says it's done but when I refresh my project, it goes back to 12. Can someone help pls. And there is issue in node 12 as error says cannot find module node:events

Voters
imjustcat
Comments
hotnewtop
Highwayman

Make a new repl, but choose the NodeJS 16 template rather than the normal NodeJS repl type.

imjustcat

@Highwayman bro thanks found it

imjustcat

@Highwayman but now when i run same code it says valid intents must be provided for the client

Highwayman

‘Valid intents’? I’m not sure what that is- maybe you need anew token, or something? Where’s the repl? @imjustcat

imjustcat

@Highwayman hey how do i show u repl here?

imjustcat

@Highwayman and i just saw ur BOTDC repl and runned it , and it didnt work

imjustcat

@Highwayman forget it lol

Highwayman

Uhhh. Sorry. It doesn’t run because you need to change the replit button
@imjustcat

imjustcat
Highwayman

You add a .replit file to /home/runner/BOTDC-1/ (the main directory), and then in that file add a line:

Or whatever command you want the run button to run.

@imjustcat

imjustcat

@Highwayman ok thanks it worked