How to stop the execution of a code in the nodemon?

Asked

Viewed 639 times

-2

Qd I want to run something using the nodemon I type in the terminal nodemon nomeDoArquivo.js, blz, but and qd I want to stop the execution?

Pq qd is a code tp timer for example, the run does not stop, so I need to close the terminal and open nv to close... Is there any command to stop the current execution without having to close the terminal?

  • 4

    ueh only ctrl + c already to!

3 answers

1

In this case it is better not to use nodemon only uses Node script.js, nodemon it is monitoring your files, when you change some file it from Reload in the application that is useful when you are developing the application. But in your case where you want to run only one file have no need to use.

1


When you want to stop any program running on the terminal, you ultilize Ctrl + C

0

If you just want it to run once and not run continuously/observing file changes and updating automatically on save, you should only run the command node nomeDoArquivo.js. If you still prefer to use the nodemon just use the command you previously used nodemon nomeDoArquivo.js and when you want to stop running just match the keys Ctrl + C

Browser other questions tagged

You are not signed in. Login or sign up in order to post.