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

前端 未结 18 861
灰色年华
灰色年华 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:15

    Just writing what did worked for me - (on Windows machine, installing node locally to the project) if you do not want to install it globally (i.e without -g flag) you have to use

    npx nodemon app
    

    where app is your app.js is your program file to launch.

提交回复
热议问题