1

I use windows command line for running Node.js files. When I execute the script window is hidden at once. So I can not see errors. How to not close window Command line and to display errors?

1
  • How are you running the server when the command-line window is not open? When I running my NodeJS application with a command in CMD the window stays open. Commented May 30, 2016 at 11:15

1 Answer 1

1

You have to open a console first and then execute your script from there.

Widows+R > type 'cmd' > OK

And in the console

C:\> cd C:\the\path\to\your\script
C:\> node yourScript.js

The console window will stay open

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.