nodemon not working: -bash: nodemon: command not found

前端 未结 18 826
灰色年华
灰色年华 2021-01-30 03:45

I\'m on a Mac running El Capitan. I have node v5.6.0 and npm v3.6.0. When I try to run nodemon, I get:

-bash: nodemon: command not found

I th

18条回答
  •  离开以前
    2021-01-30 04:32

    npm install nodemon --save-dev
    

    Next package.json on and

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

    Type on terminal (command prompt)

    npm start
    

提交回复
热议问题