Monday 24 December 2012

NPM

What is NPM?

NPM stands for Node Package Manager.
Whne we install node in our system, npm comes with node. It is a set of directory of modules, we can install individual modules depending on our requirement.

To install any module

in Git Bash
type the following command

npm install   modulename -g


or

npm install   modulename

what is the difference between these two.

1st one will install globally, where as 2nd one will install locally.  If we  install  the module globally, then no need to install module every project.If we install locally, we need to install the module for every project.

Update the module:

if the module gets updated, we need to update the module by using the following command
npm update modulename


0 comments:

Post a Comment