Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.js Server Start and Stop

Tags:

node.js

I am starting to learn Node.js and one of the annoying things I am encountering is the starting and stopping of the server when I make a small change to the .js file. Any alternatives?

like image 427
john doe Avatar asked Jul 14 '26 00:07

john doe


1 Answers

You can try installing

npm install -g nodemon

And then you run your server

nodemon server.js localhost 8080

That automatically makes you restart the server every time you save new changes

More Info. Nodemon

like image 182
Roland Arias Avatar answered Jul 15 '26 13:07

Roland Arias