nodemon not working properly

后端 未结 13 1243
我在风中等你
我在风中等你 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:31

    try

    npm install --save-dev nodemon
    

    and then in package.json file keep like this

    "scripts": {
        "start": "nodemon",
        "test": "echo \"Error: no test specified\" && exit 1"
      },
    

    instead of npx nodemon, which takes more time

提交回复
热议问题