node.js hot update automatically recompile the configuration record

  Just learning Node soon, a complete change things found to no avail, back and forth a few times to find the reason, that the code is no problem. Project stopped again, re npm start up just fine.

  I think a lot of trouble, so the search for a tutorial. Configure their own success. Record it! ! !

(A) mounting nodemon

npm install --save-dev nodemon

(B) amend package.json

"scripts": {
    "start": "nodemon ./bin/www"
  },

(C) test

 It will restart automatically after you save changes

 

 

 


 

 

 

   I i have no choice

 

Guess you like

Origin www.cnblogs.com/misscai/p/11567478.html