nodemon not working properly

后端 未结 13 679
长发绾君心
长发绾君心 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条回答
  •  -上瘾入骨i
    2021-02-01 05:25

    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

提交回复
热议问题