DEV Community

Faisal Ahmed
Faisal Ahmed

Posted on • Updated on

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

Top comments (0)