nodemon not working properly

后端 未结 13 1244
我在风中等你
我在风中等你 2021-02-01 05:20

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:44

    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" }

提交回复
热议问题