Ask coding questions

← Back to all posts
repl process died unexpectedly
UnstableLasagna

So when I try to run my Discord bot, its shows an error for a few seconds and disappears, also sorry if I did anything wrong as I'm new and this is the first post I done.

Error:
repl process died unexpectedly: exit status 1

Voters
UnstableLasagna
Comments
hotnewtop
UnstableLasagna

Edit: I renamed the main.js file to index.js and changed the main in package.json and it worked.

UnstableLasagna

Also, when trying to run it in shell using node ., it works. So yeah idk wth is happening.