Ask coding questions

← Back to all posts
How to exit REPL process in correct way?
dangtu (1)

I would like to exit REPL so I could run my package scripts .

Is there anyway to do? It seems the REPL is auto restart every time I try to exit.

Answered by SPQR (346) [earned 5 cycles]
View Answer
Commentshotnewtop
SPQR (346)

@ash15khng Actually, that isn't true. You can access the shell via the command palette (F1 I think, but you can also right click in the editor window, then click command palette, then type "shell" and press enter.) This should open a shell in which you can run bash scripts and commands. :)

dangtu (1)

@SPQR Look! Hero saves the day! Thanks guy :)

ash15khng (234)

@SPQR Wait whattt I never knew that.

ash15khng (234)

There isn't a way to run bash commands on repl.it sadly.

dangtu (1)

@ash15khng Thanks, so the scripts in package.json is useless?

vedprad1 (694)

@dangtu : Why do you need to run those scripts?

dangtu (1)

@vedprad1 I think it will help me automatically restart the server. (I guess)

vedprad1 (694)

@dangtu : I think the only way to restart the server is to press the run / restart button at the top of the page. However, if you want to see this as a new feature, you could post it here: https://repl.it/feedback

dangtu (1)

@vedprad1 Thank you for your nice support :)