How to open another terminal in Node? Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of How to open another terminal in Node? without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I want to find out how I can create another window from an already-running node.js application that I can output text in from the main application.

I have a window that displays information (main window), but I want to get another window that displays errors (secondary window) and would close when the main application is stopped. How would I be able to achieve this?

Any help would be appreciated, thanks.

Update: Nevermind, I found a solution. (answered below)
another update: You could also use express and to make a logs web page


I ditched the idea of an additional GUI and instead used a terminal library called terminal-kit, which worked perfectly for what I wanted to use it for. I’d recommend trying to make an electron app or something similar if you do want to open another GUI.

We are here to answer your question about How to open another terminal in Node? - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji