npm install and nod mon module

technical talkiess
0

 Node modules: -


NPM init —-- folder ko initilizse kar deta hai node module ke tau par

Npm install module_name —--- particulat module install karne ke liye use karte hai..

Npm install module_name@1.3.4 ….. Particular version ko install karne ke liiye isko use karte hai ….


V = 1.3.4

Major…. Miner….patch (bug fix)


Nodemon :- 


npm install nodemon --save-dev …. Live server restart karne ke liye madat karta hai 



node mon ko globally run karne ke liye ye command hai 


npm install nodemon --global



Error :- 

nodemon : The term 'nodemon' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path 

was included, verify that the path is correct and try again.

At line:1 char:1

+ nodemon .\npmtut.js

+ ~~~~~~~

    + CategoryInfo          : ObjectNotFound: (nodemon:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException

 



Added below line in the packag.json

 "scripts": {

    "test": "echo \"Error: no test specified\" && exit 1",

    "server": "nodemon server.js"

  },



Run the following command :- 

npm run server


Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)