Node project run
inside the package.json
first way to run
- second way to run
- third way to run
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.jsonand final scripts in package.json file looks like this image:
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon index.js"
},
- full index.js file and package.json file image below there:
Top comments (0)