DEV Community

Faisal Ahmed
Faisal Ahmed

Posted on • Edited on

2 1

How to run Node in package.json and also install and run nodemon

Node project run

  • inside the package.json

  • first way to run

Image description

  • second way to run

Image description

  • third way to run

Image description


How to install a npm package

  • npm install packageName

How to uninstall a npm package

  • npm uninstall packageName

How to install and run nodemon package

  • npm install nodemon

  • and also set "start": "nodemon index.js" in scripts file in package.json

  • and final scripts in package.json file looks like this image:

"scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "nodemon index.js"
  },
Enter fullscreen mode Exit fullscreen mode
  • full index.js file and package.json file image below there:

Image description

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

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

Okay