1
00:00:01,180 --> 00:00:06,340
OK, my friends, we are off to our very last up here, so we're going to execute and publish inside

2
00:00:06,340 --> 00:00:07,290
of our project directory.

3
00:00:07,600 --> 00:00:11,520
Notice that this is not publish, it is not NPM, run, publish.

4
00:00:11,560 --> 00:00:12,700
So there's no run in this.

5
00:00:14,460 --> 00:00:20,760
In order to run and publish, you do have to be logged into the CLI if you are not logged in or if you

6
00:00:20,760 --> 00:00:22,410
get a message about not being logged in.

7
00:00:22,440 --> 00:00:28,110
All you have to do is an NPM log in command and then you'll be prompted to enter in your NPM login credentials.

8
00:00:28,590 --> 00:00:30,690
If you don't have an account, no problem.

9
00:00:30,690 --> 00:00:32,940
You can create one at NPM, just dotcom.

10
00:00:34,560 --> 00:00:38,870
So once you are all logged in, will then do a simple NPM publish.

11
00:00:40,430 --> 00:00:45,530
Well, then immediately see our project get built and then pushed off to the NPM registry, that looks

12
00:00:45,530 --> 00:00:47,340
like we have deployed this package.

13
00:00:47,600 --> 00:00:50,730
Now, if we want to, we could very easily run it from our terminal.

14
00:00:51,290 --> 00:00:51,920
So I'm going to do.

15
00:00:51,920 --> 00:00:53,870
And Northparkes Hyne.

16
00:00:54,770 --> 00:00:56,210
NPM deploy.

17
00:00:58,190 --> 00:01:02,540
So that will download all the source code for our package from the registry and then run that package

18
00:01:02,540 --> 00:01:07,000
on our local machine and as you can see very easily, we are, in fact listening on PT. three thousand

19
00:01:07,000 --> 00:01:09,050
and five, which is exactly what we want.

20
00:01:10,860 --> 00:01:12,060
OK, so this looks pretty good.

21
00:01:12,940 --> 00:01:17,590
Now, the other thing we could do here very easily, we could install this as a global package so we

22
00:01:17,590 --> 00:01:24,760
could do a and install dash any NPM deploy if you run this command to get a permission error, that's

23
00:01:24,760 --> 00:01:25,360
totally fine.

24
00:01:25,360 --> 00:01:27,280
Just rely upon the variant.

25
00:01:28,180 --> 00:01:34,960
But if you are able to run the dog now, we could just do a direct ayni and deploy and we would be ready

26
00:01:34,960 --> 00:01:35,350
to go.

27
00:01:37,170 --> 00:01:43,350
OK, so that is it, we have now deployed or published a package up to the registry and as you can see,

28
00:01:43,350 --> 00:01:45,090
there are many steps we have to go through.

29
00:01:45,770 --> 00:01:46,740
We're going to take a pause here.

30
00:01:46,770 --> 00:01:51,120
We're then going to go back over to our real project and we're going to run through all these different

31
00:01:51,120 --> 00:01:53,670
steps for our three different packages.

32
00:01:54,210 --> 00:01:56,400
So let's take a pause here and then get to it.

