1
00:00:04,420 --> 00:00:05,560
In this video.

2
00:00:05,560 --> 00:00:11,500
Let's see how we can make use of NPM modules or packages.

3
00:00:11,950 --> 00:00:16,900
Well, we have two ways of installing NPM packages.

4
00:00:16,930 --> 00:00:23,820
The first option is we can do so locally and the other option is globally.

5
00:00:23,830 --> 00:00:25,930
So what is differences?

6
00:00:25,960 --> 00:00:31,080
Well, NPM performs the operation in two modes.

7
00:00:31,090 --> 00:00:33,700
That is a global and local.

8
00:00:34,000 --> 00:00:43,690
And in the global installation or in global mode, NPM performs operations, which affects all the Node.js

9
00:00:43,690 --> 00:00:46,480
applications on the computer.

10
00:00:46,900 --> 00:00:55,450
So if you install a package or a module globally, it is available to any node application that you

11
00:00:55,450 --> 00:00:56,740
are going to create.

12
00:00:57,370 --> 00:01:07,930
And in the local mode, NPM perform operations for a particular local directory, which affects an application

13
00:01:07,930 --> 00:01:10,210
in that directory only.

14
00:01:10,600 --> 00:01:18,310
So if you install it locally, it means that the particular application that we are in is going to install

15
00:01:18,310 --> 00:01:22,720
or it can be accessed by the packet that we are going to install.

16
00:01:23,050 --> 00:01:26,230
So which of these options is ideal way?

17
00:01:26,380 --> 00:01:32,860
Well, based on experience is always advisable to install packages locally.

18
00:01:33,340 --> 00:01:37,750
Well, so let's see how we can install and PM.

19
00:01:38,200 --> 00:01:42,340
First, we need to make sure that we have NPM being installed.

20
00:01:42,430 --> 00:01:51,170
But lucky for us, as soon as we install Node.js, we have NPM being installed for us automatically.

21
00:01:51,190 --> 00:01:58,750
So let me prove to you, if you go to Node.js websites, let's go to homepage and let's go ahead and

22
00:01:58,750 --> 00:02:00,190
click on downloads.

23
00:02:00,610 --> 00:02:06,730
So here it says that if you download the latest version, we have NPM included.

24
00:02:06,760 --> 00:02:11,590
Likewise, the current, you also have NPM also included.

25
00:02:11,710 --> 00:02:18,010
So there is no need for us to install NPM separately and to make sure the version of NPM you have make

26
00:02:18,010 --> 00:02:21,540
use of NPM does does v.

27
00:02:21,870 --> 00:02:25,840
I'm going to see the version of NPM at a time of record in this video.

28
00:02:26,290 --> 00:02:29,950
So how can we install our first package?

29
00:02:29,980 --> 00:02:32,740
Let's get into that in the next video.

