前提,已经正确的安装node.js
npm install -g cnpm --registry=https://registry.npm.taobao.org
设置成淘宝的源
npm install -g nodemon
安装nodemon
此时关掉服务,重新开启
nodemon service.js
修改代码,不必关掉服务业,直接刷新页面就能看到效果
前提,已经正确的安装node.js
npm install -g cnpm --registry=https://registry.npm.taobao.org
设置成淘宝的源
npm install -g nodemon
安装nodemon
此时关掉服务,重新开启
nodemon service.js
修改代码,不必关掉服务业,直接刷新页面就能看到效果
转载于:https://www.cnblogs.com/dcj890828/articles/5248928.html