DEV Community

Cover image for 101 nodemon + Node.js
khaled-17
khaled-17

Posted on

101 nodemon + Node.js

`# Install nodemon
npm install nodemon

Install nodemon globally on your machine

npm install -g nodemon

Install nodemon on your project as dev-dependency

npm install nodemon --save-dev`

then in file package.json

add it
"scripts": {
"start":"nodemon index.js"
}

Image description

then in index.js

add this

Image description
console.log("heloo");

then in cmd add this npm start

Image description

Top comments (0)