码迷,mamicode.com
首页 > Web开发 > 详细

使用nodemon提高nodejs调试效率

时间:2019-10-11 15:27:55      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:ejs   定位   rect   span   direct   效率   dem   The   blog   

 

1、安装

nodemon

直接用npm安装既可,键入命令: npm -g install nodemon

。如果不行,检查电脑有没有联网,联网后输入

sudo npm -g install nodemon

2、nodemon的使用

用cd命令定位到项目的根目录

输入以下的命令

nodemon bin/www

 

请注意:这里无需npm start 命令

change directory:
$ cd blogs

install dependencies:
$ npm install

run the app:
$ DEBUG=blogs:* npm start

大功告成

使用nodemon提高nodejs调试效率

标签:ejs   定位   rect   span   direct   效率   dem   The   blog   

原文地址:https://www.cnblogs.com/sexintercourse/p/11654324.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!