nodemon:修改代码不用再启动程序,就可以自动跑程序
nodemon
安装:
npm install -g nodemon
替换淘宝镜像 :
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install -g nodemon
启动方式:
nodemon 文件名
或者:
npm init -y, 修改以下内容
"scripts": {
"start": "nodemon reqTest.js"
},
启动命令: npm run start