

In the global mode, NPM performs operations which affect all the Node.js applications on the computer whereas in the local mode, NPM performs operations for the particular local directory which affects an application in that directory only. NPM performs the operation in two modes: global and local. To access NPM help, write npm help in the command prompt or terminal window. If you have an older version of NPM then you can update it to the latest version using the following command. After you install Node.js, verify NPM installation by writing the following command in terminal or command prompt. NPM is included with Node.js installation.

It has now become a popular package manager for other open-source JavaScript frameworks like AngularJS, jQuery, Gulp, Bower etc.
