How to exit Node.js REPL environment All In One
exit Node.js REPL methods
# double press ✅
$ Ctrl + C
# or ✅
$ Ctrl + C
$ Ctrl + D
# or ✅
$ .exit
exit()
❌
quit()
❌
demo
$ node -v
v16.14.2
$ node
Welcome to Node.js v16.14.2.
Type ".help" for more information.
> exit
Uncaught ReferenceError: exit is not defined
> quit
Uncaught ReferenceError: quit is not defined
>
(To exit, press Ctrl+C again or Ctrl+D or type .exit)
> .exit
➜ 000-xyz git:(main) ✗
refs
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载
标签:Node,Ctrl,js,environment,How,REPL,exit From: https://www.cnblogs.com/xgqfrms/p/16717983.html