nodemon start script code example
Example 1: install nodemon
npm install nodemon
npm install -g nodemon
npm install nodemon --save-dev
Example 2: install nodemon
npm install nodemon --save-dev
Example 3: nodemon package.json start
{
"name": "abc",
"version": "0.0.1",
"description": "my server",
"scripts": {
"start": "nodemon my_file.js" // <=
Example 4: nodemon script
npm i nodemon
"scripts": {
"start":"nodemon index.js"
}
nodemon ./server.js localhost 8000
Example 5: nodemon a npm run command
nodemon --exec npm run dev:test
Example 6: starting nodemon server
nodemon ./server.js localhost 8080