1、全局安装nodemon (https://github.com/remy/nodemon) cnpm install -g nodemon 2、cnpm install 3、nodemon app.js