Install hot update
Introduction to nodemon
During development, every time you modify a file, you need to restart the express service, which is troublesome. Using nodemon, the express service can be restarted automatically after modifying the file.
1. Installation:
npm install --save-dev nodemon
2. Modify the contents of package.json:
"scripts": { "start": "node ./bin/www", "devstart": "nodemon ./bin/www" }
3. Use the npm run devstart command to start the service