WEBVTT 00:05.720 --> 00:12.470 In this video you're going to install no days on your computer so to install node you just need to go 00:12.470 --> 00:18.460 to the No j s those org Web sites and click on the download button. 00:18.500 --> 00:25.610 Now I suggest going for the latest version available to take advantage of the latest features for your 00:25.610 --> 00:33.180 applications so at the moment it's version eleven point two point zero you don't have to worry. 00:33.180 --> 00:39.390 You can always upgrade to future versions using some simple commands which I'm going to include in the 00:39.390 --> 00:41.430 documentation of the course. 00:42.120 --> 00:49.110 And also if you've got no it already installed on your computer you can use those simple commands to 00:49.140 --> 00:51.400 upgrade to this version. 00:51.540 --> 00:53.800 So just make sure you do that. 00:53.880 --> 01:02.110 So I'm gonna click on this button and he's going to download the package which will install node on 01:02.140 --> 01:03.710 my computer. 01:03.820 --> 01:09.460 So if you keep clicking through the installation process this is going to install node on your computer. 01:09.550 --> 01:13.210 So I'm not going to do that because I've got node already installed. 01:13.600 --> 01:14.080 So 01:16.860 --> 01:22.600 a couple of important files are going to be installed on a computer. 01:23.830 --> 01:26.730 And those are both executable files. 01:27.070 --> 01:35.440 So an executable file is a file which will execute a set of instructions in your computer when you run 01:35.770 --> 01:37.600 that file. 01:37.630 --> 01:40.360 So the first file is node. 01:40.390 --> 01:45.580 This is the file which will be responsible for running your node applications. 01:45.580 --> 01:52.860 So whenever you open or you run a node application does the executable which will be responsible for 01:52.860 --> 01:53.800 running your up. 01:53.860 --> 02:00.980 This is the location where you can find that file NPM is another important executable. 02:01.110 --> 02:07.110 And this one is gonna be responsible for managing the different packages or node packages that you install 02:07.260 --> 02:08.820 on your computer. 02:08.920 --> 02:13.870 And I'm going to cover NPM later on and it's gonna be a very important topic. 02:13.890 --> 02:18.810 All right so once you install node you need to check that Newt has been successfully installed on your 02:18.810 --> 02:19.770 computer. 02:19.770 --> 02:25.050 So it's you do that you're gonna need to use what we call the command line or the command prompts all 02:25.050 --> 02:26.990 the terminal. 02:27.360 --> 02:37.130 So if you're out on a mike you can just type command space and then terminal and then double click on 02:37.130 --> 02:38.170 terminal. 02:38.710 --> 02:50.540 This is gonna open the terminal for you if you are on Windows or Linux then you can use window R then 02:50.540 --> 03:04.120 command and then enter or control ulti on Linux or just click on terminal in your programs menu so the 03:04.150 --> 03:10.840 command line is the old way of communicating to a computer. 03:10.910 --> 03:17.500 So in the old days people did not have such nice user interfaces. 03:17.540 --> 03:25.340 We have today where we can just double click on folders open files by clicking on them and so on. 03:25.590 --> 03:34.050 They how to use the command line just like this by writing text and telling the computer what to do 03:34.320 --> 03:40.600 through commands so anything you write there is called a command. 03:40.600 --> 03:45.990 So other moments you don't have to worry too much about the command line as in the next video you're 03:46.000 --> 03:48.310 gonna go through a command line crash course. 03:48.940 --> 03:55.240 So for now I'm going to use some simple commands just to make sure that we've got node installed in 03:55.240 --> 04:01.240 our computer so to check the Virgin of node we've got install on our computer. 04:01.390 --> 04:05.980 The command is node space hyphen V. 04:05.980 --> 04:06.990 So if you see this. 04:07.030 --> 04:14.900 This means that you've got node version eleven point two point zero install on your computer. 04:14.930 --> 04:18.200 Now remember those couple of files the executable. 04:18.680 --> 04:22.810 Let's check those we've got them inside our computer. 04:23.120 --> 04:30.360 So to do this we can check what we call an environment variable called path. 04:31.020 --> 04:33.930 So first what is environment variable. 04:34.020 --> 04:43.470 So an environment is variable is a global system variable which can be accessed by any process running 04:43.890 --> 04:47.630 on your computer. 04:47.690 --> 04:57.890 So what it was one example of these variables is the path variable so let's check what's inside this 04:57.950 --> 05:00.640 variable. 05:00.810 --> 05:01.830 I'm gonna run echo 05:05.840 --> 05:07.950 bath like this. 05:08.000 --> 05:12.480 So this is the syntax for a mike 05:15.380 --> 05:25.940 if you are on Windows you can write echo percentage pass like That's right. 05:25.990 --> 05:29.310 So we'll see of course inside this variable 05:32.510 --> 05:40.870 is a set of directories where you can find executable programs. 05:40.870 --> 05:50.260 All right so executable programs on my computer are located in those directories and these are separated 05:50.260 --> 05:55.170 using call on all right. 05:55.190 --> 06:00.690 So now let's check what we've got inside this one. 06:01.040 --> 06:10.480 So if you do that I'm going to type this command Alice and then Peter rectory and you can see that we've 06:10.490 --> 06:18.370 got node goes NPM which we installed earlier. 06:18.370 --> 06:30.370 I've got other things like brackets and it's another executable which allows me to open files using 06:30.370 --> 06:34.860 brackets from the command line and you can do that as well if you want. 06:34.870 --> 06:41.880 So you can just go to brackets and go to file install command line shortcuts. 06:41.950 --> 06:42.670 All right. 06:42.730 --> 06:50.040 And if you do with us you'll be able to open files using brackets directly from the command line and 06:50.040 --> 06:53.050 we'll see examples of this in the next video. 06:53.430 --> 06:53.710 All right. 06:53.710 --> 07:01.060 Now if you want to see all the environments variables on your computer there is a good command for that. 07:01.090 --> 07:04.060 So in a Mac it's end all right. 07:04.120 --> 07:09.280 Or print of like this both are ok. 07:09.660 --> 07:16.810 So I'm going to try and and this is going to print all the the different environments variables of course 07:16.870 --> 07:17.610 on my computer. 07:18.010 --> 07:24.980 So Barth is right there so if you are on Windows instead of and you type sets. 07:25.010 --> 07:30.320 Now let's have a look at what is called ripple in node ripples stands for real. 07:30.320 --> 07:37.730 If our print loop and it can be used to run javascript code just like you do in the chrome console. 07:38.180 --> 07:44.720 So if I go to the Chrome console I can run javascript code easily from here. 07:45.290 --> 07:51.530 So let's console that log high for example let's define a variable 07:54.710 --> 08:04.400 X and set it to one let's console that log X and you can do so many other things in the console. 08:04.400 --> 08:13.470 Now similarly if you go to your terminal you can type node and now you'll be able to do whatever you 08:13.470 --> 08:16.060 were doing in the chrome console. 08:16.110 --> 08:22.080 You can console the log something like this. 08:22.080 --> 08:25.260 You can also define a variable. 08:25.510 --> 08:28.570 You can do multiplication 08:31.130 --> 08:31.850 operations 08:35.260 --> 08:40.060 addition and so many other things to exit this mode. 08:40.060 --> 08:43.140 You can just type dot exit like that. 08:43.210 --> 08:48.700 And if you want to know more about this module you just need to go to the documentation page by clicking 08:48.700 --> 08:50.990 on the link ripple. 08:51.010 --> 08:55.860 Now this will show you many things like the commands and special keys. 08:55.990 --> 08:58.960 Some examples and so on. 08:58.960 --> 08:59.260 All right. 08:59.260 --> 09:04.540 In the next video you're going to go through a command line crash course which will help you master 09:04.540 --> 09:08.260 the terminal and make your node learning journey easier.