use nodemon. code example Example 1: install nodemon npm install nodemon --save-dev Example 2: installing nodemon in windows npm install --save-dev nodemon