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

大功告成

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

大功告成

相关文章:

  • 2022-12-23
  • 2021-04-06
  • 2021-10-20
  • 2021-12-10
  • 2022-12-23
  • 2021-12-21
猜你喜欢
  • 2021-07-04
  • 2022-12-23
  • 2021-07-23
  • 2021-08-16
  • 2021-06-03
相关资源
相似解决方案