nodemon not working properly

后端 未结 13 1005
长发绾君心
长发绾君心 2021-02-01 05:18

I am running my nodejs app by npm start

I just installed nodemon by sudo npm install -g nodemon so that i can get my server restarted when i s

13条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 05:30

    If you are using express4, the easiest way is to navigate to package.json and change "scripts": { "start": "node ./bin/www" }

    to "scripts": { "start": "nodemon ./bin/www" }

提交回复
热议问题