nodemon可以自动重启服务器,在测试中使用
1、安装
$ npm install --save-dev nodemon
2、在package.json中配置
"start": "nodemon index.js