Ask coding questions

← Back to all posts
nodejs wont run
SganOfLegend (0)

Alright so I have this discord bot but it requires me to run it with npm and I don't want to run it witn npm due when i close the app, it just shut downs the bot. Is there any way I can make this run with replit's "run" button

Comments
hotnewtop
SganOfLegend (0)

@Coder100 yeah alright so code to power up the bot, I changed it to node bot, after creating a start.split file i typed in
run = "node bot" but it seems like it cancels the running process and puts it back to stop

InvisibleOne (3224)


The reason it's not running when you press the run button is this error.

SganOfLegend (0)

@InvisibleOne it perfectly runs when i run it with npm start, im looking for a way to make it run with the repl run button instead of npm start