المعرفة:: NodeJS الحالة::مؤرشفة المراجع:: The Complete Node.js Developer Course 3rd Edition


  • nodemon is a tool that helps develop Node.js based applications by automatically restarting the node application when file changes in the directory are detected.
  • https://www.npmjs.com/package/nodemon
  • When you install nodemon globally, you get access a new nodemon command from the terminal. This can be used to start and Node.js application and then restart the application any of the app scripts change.
    • This means you won’t need to switch between the terminal and text editor to restart your application every time you make a change.
nodemon app.js
  • You can stop nodemon by using ctrl + c from the terminal.

  • Nodemon won’t load the changes automatically unless we adjust our nodemon command to nodemon src/app.js -e js,hbs.
وصلة للملاحظة الرئيسة