node配置自动监测文件改变不重启

方法一: nodemon

npm install -g nodemon

nodemon ./bin/www
或者在npm start命令里把node改为nodemon  

方法二:supervisor

npm install -g supervisor

supervisor ./bin/www
或者在npm start命令里把node改为supervisor  
原文地址:https://www.cnblogs.com/beileixinqing/p/7940778.html