How to install Nodemon-- Express.js Tutorials
Hello Everyone
As you know we have started the Express.js tutorials. We already discussed the basics we learned how to install and create our server. But we had a problem if you remember the previous post. Whenever we made changes to the server file we needed to stop the server and re-run it which was pretty annoying. We have a solution for that in this video we will learn how can we rerun the server automatically without close it manually. Whenever we change and save the server file the server will automatically refresh itself. So without wasting time let's begin.
- I have the previous tutorial file open here.
- Let's run it
- Open the folder in the command prompt
- This is a page I created. Now if I change the text and save it
if I refresh the page nothing is happening
- But If i rerun the server
- Now to remove this close and start pain we can install
nodemon.
- Open command prompt ( Run as administration) and type
npm install -g nodemonthis will install the node globally. Wait for the installation it may take a few seconds
After installation open the folder in the command prompt again type nodemon fileName in my case nodemon index.js
I think this much is enough for today. Now if you like the post please upvote and comment if you want to give me some advise
Leave How to install Nodemon-- Express.js Tutorials to:
Read more #expressjs posts
Best Posts From ProGrammer
We have not curated any of pakgamer's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From ProGrammer
- What do you think your Password is Secure?
- Nodejs Tutorial-- Sending Email using NodeMailer
- Node.js Tutorial --Reading and Writing files
- How to install Nodemon-- Express.js Tutorials
- How to use Range Element in a simple voting tool
- Learning Express.js-- installation and Hello World Example
- How to Compile your C/C++ code on the Visual Studio Code.
- How to check Voting Power And Resource Credit of Hive Account Through dhive
- How To Send Message TO WhatsApp Using JavaScript/Node.js-- Twilio
- How to add Custom prefix to your Discord Bot. Discordjs Tutorial