方法一: nodemon
npm install -g nodemon nodemon ./bin/www 或者在npm start命令里把node改为nodemon
方法二:supervisor
npm install -g supervisor supervisor ./bin/www 或者在npm start命令里把node改为supervisor