install nodemon only dev environment code example Example 1: nodemon npm install -g nodemon Example 2: nodemon a npm run command nodemon --exec npm run dev:test