Skip to content
Sign upLog in
← Back to Community

How to exit REPL process in correct way?

Profile icon
dangtu

I would like to exit REPL so I could run my package scripts .
Annotation 2019-07-16 131357

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

Answered by SPQR [earned 5 cycles]
View Answer
Voters
Profile icon
Doorsrio
Profile icon
Leelo08
Profile icon
dangtu
Comments
hotnewtop
Profile icon
SPQR

@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. :)

Profile icon
dangtu

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

Profile icon
SPQR

@dangtu
no problem :)

Profile icon
ash15khng

@SPQR
Wait whattt I never knew that.

Profile icon
SPQR

@ash15khng
Now you know :D

Profile icon
ash15khng

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

Profile icon
dangtu

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

Profile icon
vedprad1

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

Profile icon
dangtu

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

Profile icon
vedprad1

@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

Profile icon
dangtu

@vedprad1
Thank you for your nice support :)

Profile icon
Kogam22

@dangtu
Ctrl + Shift + S opens up a new terminal.