node.js做后端语言,安装淘宝镜像,并使用nodemon来做服务
前提,已经正确的安装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
修改代码,不必关掉服务业,直接刷新页面就能看到效果