Skip to main content

Errata - Nodemon Setup

Nodemon is a utility that monitors for any changes in your source and automatically restarts your server. It is a great tool for development, but it is not recommended for production. To set up Nodemon, you can install it globally or as a development dependency in your project. Here’s how to do both:

Install Nodemon in your project

npm install --save-dev nodemon
info

nodemon is a installed as a development dependency because, once the application is deployed, the web host will be responsible for starting the server.

Once nodemon is installed, update the dev script in your package.json file

{
"scripts": {
"dev": "nodemon src/index.ts"
}
}