1
00:00:05,840 --> 00:00:06,980
In this video.

2
00:00:06,980 --> 00:00:10,790
Let's see how we can install packages globally.

3
00:00:10,790 --> 00:00:19,550
So the same task goes like this npm install and flag does G and the name of the package or you can make

4
00:00:19,550 --> 00:00:22,910
use of NPM II and then the G flag.

5
00:00:22,910 --> 00:00:23,900
So let's see.

6
00:00:24,470 --> 00:00:28,610
So let's go ahead and install a different package called Node one.

7
00:00:28,610 --> 00:00:34,640
And this package help us to rest our server any time we make changes automatically.

8
00:00:34,670 --> 00:00:38,990
So for the meantime, we are going to make use of Node one for now.

9
00:00:39,020 --> 00:00:40,940
As you move on, I will show you.

10
00:00:41,180 --> 00:00:42,410
So this is how it goes.

11
00:00:42,410 --> 00:00:49,860
So npm I and then dash g the name of the package which is called Node.

12
00:00:49,860 --> 00:00:51,740
C'mon, let's hit enter.

13
00:00:51,830 --> 00:00:54,080
Let's see what is going to happen.

14
00:00:54,080 --> 00:01:01,640
Well, as a historian, if you are on Mark, I'm going to ask you permission that we need to enter your

15
00:01:01,640 --> 00:01:02,480
password.

16
00:01:02,510 --> 00:01:08,030
You see that we have what is called access, deny or permission denied, meaning that you need to give

17
00:01:08,030 --> 00:01:14,960
permission before we can install because we are installing this package globally on our operating system.

18
00:01:15,170 --> 00:01:18,590
So if I windows, I'm not sure I'm going to see this kind of message.

19
00:01:18,590 --> 00:01:24,740
So to avoid this, we provide so let me clear the console and let me start again.

20
00:01:24,740 --> 00:01:34,010
Clear the console and this is the command sudo and then npm i dash g the name of the package.

21
00:01:34,100 --> 00:01:38,480
So let's hit enter now it's asking me to enter my password.

22
00:01:38,480 --> 00:01:43,550
So let me go ahead, enter my password and now I enter the wrong password.

23
00:01:43,550 --> 00:01:45,020
So let me try again.

24
00:01:45,020 --> 00:01:51,650
And now I can see that is now installing Nordman globally on my operating system.

25
00:01:51,920 --> 00:01:55,070
So after installing we see that it has added.

26
00:01:55,070 --> 00:02:03,410
Let's check it out now inside the node modules because I've installed globally is not here inside the

27
00:02:03,410 --> 00:02:04,400
node module.

28
00:02:04,760 --> 00:02:12,440
But if I check the package two is not here, but I can still use it, but I can still use it.

29
00:02:12,470 --> 00:02:19,400
That's the beauty of installing modules or packages globally, but we need to avoid installing packages

30
00:02:19,430 --> 00:02:20,300
globally.

31
00:02:20,300 --> 00:02:21,350
Then this video.

32
00:02:21,350 --> 00:02:24,740
Let's see how we can update a package.

