简体   繁体   中英

Node REPL: how to break out of …?

So, in the node REPL, if I do something stupid, I get stuck in ... hell. I suppose the interpreter is waiting for the statement to be closed, but how can I break out of this?

$ node
> "I did something stupid
...
...

I usually do Ctrl-C and that works fine atleast in Linux .

Ctrl-C and Escape are the most common "break from something" keys .

It works in most of the terminal apps .

As a bonus , in linux I use Ctrl-L to clear Node.js, Python etc REPL .

It is helpful sometimes .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM