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

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

    I'm using macOS/Linux, the solution that works for me is

    npx nodemon index.js 
    

    I have tried every possibility, like uninstalling and installing nodemon, installing nodemon globally. restart the terminal, but it won't work.

    don't try such things to waste your time.

提交回复
热议问题