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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay