Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,150 --> 00:00:01,260
Hello.
2
00:00:01,500 --> 00:00:02,250
All right.
3
00:00:02,280 --> 00:00:09,510
We've just started scratching the surface of what Node.js is and what it can be used for.
4
00:00:10,170 --> 00:00:18,330
We know that it's a runtime for JavaScript that's built on Chrome's V8 JavaScript engine, which it
5
00:00:18,330 --> 00:00:24,330
uses to understand JavaScript and give instructions to the computer.
6
00:00:24,990 --> 00:00:32,010
But we could talk all we want about node and what it can do for us and without actually using it and
7
00:00:32,010 --> 00:00:33,210
seeing it in action.
8
00:00:33,570 --> 00:00:35,850
We're not going to fully understand it.
9
00:00:36,600 --> 00:00:42,900
So let's get node set up on our computers and actually write our first node program.
10
00:00:43,780 --> 00:00:47,920
From there, we can work backwards and see how does it work?
11
00:00:48,460 --> 00:00:50,020
What's the architecture of it?
12
00:00:50,560 --> 00:00:51,610
Why do we use it?
13
00:00:52,480 --> 00:00:57,310
And really dive deep into what node is underneath it all.
14
00:00:58,210 --> 00:01:08,170
If we go to the official nodes website at Node.js Dawg in our browser, we're immediately shown to download
15
00:01:08,170 --> 00:01:11,140
options for our operating system.
16
00:01:12,060 --> 00:01:19,770
The browser is detecting which operating system we're using and giving us the two best options.
17
00:01:20,550 --> 00:01:26,070
We now have a choice between the ELTs version and the current version.
18
00:01:26,820 --> 00:01:32,850
You see, Node.js has been around for quite a while, but it's still changing.
19
00:01:32,850 --> 00:01:35,910
It's still being updated and getting better.
20
00:01:36,420 --> 00:01:43,290
If you wanted to stay with the latest, greatest features and updates with a slightly larger risk of
21
00:01:43,290 --> 00:01:49,470
more bugs and instability, you can go for the current active version here.
22
00:01:50,430 --> 00:01:57,060
Whatever it is when you're watching this video, but you can see that the recommended version for most
23
00:01:57,060 --> 00:02:02,730
users over here is the ELTs or long term support version of note.
24
00:02:03,420 --> 00:02:11,100
This means that the Note developers are guaranteeing that they will maintain and support this version
25
00:02:11,100 --> 00:02:15,060
of node for longer than the active version.
26
00:02:15,870 --> 00:02:24,210
So if we're working with real life production systems, we want the extra stability and guarantees that
27
00:02:24,210 --> 00:02:26,820
we get with a long term support version.
28
00:02:27,770 --> 00:02:35,240
And because of that, for this course, I recommend this Altius version right here.
29
00:02:36,470 --> 00:02:45,590
We can also go to the downloads page and see that there are plenty of options here to install node for
30
00:02:45,740 --> 00:02:47,600
every operating system.
31
00:02:48,260 --> 00:02:52,070
There's installers for Windows and Mac OS.
32
00:02:52,850 --> 00:02:57,530
There's Linux binaries and an option to install from source code.
33
00:02:58,370 --> 00:03:05,750
If instead, you prefer installing node, using a package manager or an installer for your operating
34
00:03:05,750 --> 00:03:12,500
system that allows you to install packages like Node, you can scroll down to the.
35
00:03:13,590 --> 00:03:22,470
Installing no GST via package manager option, which has instructions for pretty much any distribution
36
00:03:22,470 --> 00:03:24,390
of Linux you can think of.
37
00:03:25,260 --> 00:03:35,880
As well as alternative options for Mac, OS and Windows, for example, using homebrew for Mac OS or
38
00:03:35,880 --> 00:03:42,570
using a package manager like chocolatey or scoop for Windows over here.
39
00:03:43,980 --> 00:03:53,250
Finally, there's this option over here to install using an VM or the node version manager.
40
00:03:54,670 --> 00:04:01,330
Which is a program that allows you to have multiple versions of node installed at the same time.
41
00:04:02,630 --> 00:04:05,300
And switch back and forth between them.
42
00:04:07,450 --> 00:04:15,580
This is for when you're working at a large company with multiple teams using different development environments
43
00:04:15,850 --> 00:04:19,030
that you need to switch back and forth from.
44
00:04:19,960 --> 00:04:28,300
So there's plenty of options, but the simplest way and the way that I recommend is to download the
45
00:04:28,320 --> 00:04:31,690
ELTs installer for your operating system.
46
00:04:32,620 --> 00:04:39,700
And since I'm on a Mac, I'm going to download the Mac OS installer and then open it.
47
00:04:41,990 --> 00:04:46,940
Now I can follow through the steps of the installer agreeing to the license.
48
00:04:51,730 --> 00:04:55,810
And I might need to put in my password to give it permission to install.
49
00:05:00,280 --> 00:05:01,630
All right, there we go.
50
00:05:01,660 --> 00:05:03,100
We've installed Node.
51
00:05:03,220 --> 00:05:04,000
That's awesome.
52
00:05:05,880 --> 00:05:08,490
Now I'm going to open up our terminal.
53
00:05:09,650 --> 00:05:16,550
If you're on windows, you might want to use PowerShell, and if you're on Mac or Linux, your default
54
00:05:16,550 --> 00:05:20,570
terminal is all you need because we've installed Node.
55
00:05:21,050 --> 00:05:24,170
We can now type in the node command.
56
00:05:25,650 --> 00:05:35,400
And we can pass in this Dash Dash version flag after the node command or Node Dash V for short.
57
00:05:36,820 --> 00:05:43,870
And if the version of note that we get back, that's been installed on our system matches the version
58
00:05:44,260 --> 00:05:47,770
that we selected from the website, we're good to go.
59
00:05:48,670 --> 00:05:52,180
We can also run node without the Virgin flag.
60
00:05:53,860 --> 00:05:56,380
And type in some JavaScript code.
61
00:05:57,280 --> 00:06:01,480
Like two plus two or woo plus who?
62
00:06:02,730 --> 00:06:06,960
And it will be executed by the no gas runtime.
63
00:06:08,270 --> 00:06:14,660
Now we could exit from node by typing, exit and pressing enter.
64
00:06:15,700 --> 00:06:18,670
Or by pressing control, see twice.
65
00:06:20,940 --> 00:06:23,640
Which will put us back into our terminal.
66
00:06:24,930 --> 00:06:25,500
Awesome.
67
00:06:25,770 --> 00:06:30,270
So let's get A. installed and start diving into the fun stuff.
68
00:06:31,050 --> 00:06:33,060
I'll see you in the next video.
6835
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.