install nodemon as a dev dependency code example
Example 1: install nodemon
npm install nodemon --save-dev
Example 2: nodemon
npm install -g nodemon
Example 3: nodemon a npm run command
nodemon --exec npm run dev:test
npm install nodemon --save-dev
npm install -g nodemon
nodemon --exec npm run dev:test