In this video.
Let's see how we can make use of NPM modules or packages.
Well, we have two ways of installing NPM packages.
The first option is we can do so locally and the other option is globally.
So what is differences?
Well, NPM performs the operation in two modes.
That is a global and local.
And in the global installation or in global mode, NPM performs operations, which affects all the Node.js
applications on the computer.
So if you install a package or a module globally, it is available to any node application that you
are going to create.
And in the local mode, NPM perform operations for a particular local directory, which affects an application
in that directory only.
So if you install it locally, it means that the particular application that we are in is going to install
or it can be accessed by the packet that we are going to install.
So which of these options is ideal way?
Well, based on experience is always advisable to install packages locally.
Well, so let's see how we can install and PM.
First, we need to make sure that we have NPM being installed.
But lucky for us, as soon as we install Node.js, we have NPM being installed for us automatically.
So let me prove to you, if you go to Node.js websites, let's go to homepage and let's go ahead and
click on downloads.
So here it says that if you download the latest version, we have NPM included.
Likewise, the current, you also have NPM also included.
So there is no need for us to install NPM separately and to make sure the version of NPM you have make
use of NPM does does v.
I'm going to see the version of NPM at a time of record in this video.
So how can we install our first package?
Let's get into that in the next video.