1 00:00:00,130 --> 00:00:03,780 Before we can use the Angular CLI to create a new project, 2 00:00:03,780 --> 00:00:06,080 we need to install it on our system. 3 00:00:06,080 --> 00:00:10,850 Before we do that, we need to verify that we have Node and NPM installed and 4 00:00:10,850 --> 00:00:12,880 what versions we're currently running. 5 00:00:12,880 --> 00:00:17,080 The CLI and the Angular project that it will generate will have dependencies that 6 00:00:17,080 --> 00:00:24,430 require Node 6.9.0 or higher, together with NPM 3 or higher. 7 00:00:24,430 --> 00:00:27,550 Luckily, doing this is easy to do. 8 00:00:27,550 --> 00:00:31,860 Let's open an instance of the terminal by pressing Cmd + space bar 9 00:00:31,860 --> 00:00:35,020 to open Spotlight Search on Mac OS. 10 00:00:35,020 --> 00:00:39,943 Then we can type the first part of the word terminal and press Enter. 11 00:00:41,494 --> 00:00:45,270 If you're on Windows, you can press the Windows key or 12 00:00:45,270 --> 00:00:50,543 click on the Start button and type command to search for the command prompt. 13 00:00:50,543 --> 00:00:57,330 Then to verify that Node is installed, type at the prompt, the command, node- v. 14 00:00:57,330 --> 00:01:01,029 If you have Node installed, you'll see what version you're running. 15 00:01:01,029 --> 00:01:05,404 We can see here that I'm running version 9.3.0. 16 00:01:05,404 --> 00:01:11,180 You can do the same for NPM by typing the command, npm-v. 17 00:01:11,180 --> 00:01:14,053 If you don't have either Node or NPM installed or 18 00:01:14,053 --> 00:01:18,961 you don't have current enough versions installed, go ahead an pause the video and 19 00:01:18,961 --> 00:01:22,040 install or update your installations. 20 00:01:22,040 --> 00:01:26,241 See the Teacher's Notes for links that can help guide you through the process. 21 00:01:26,241 --> 00:01:31,971 Now let's install the Angular CLI by running 22 00:01:31,971 --> 00:01:37,859 the command npm install -g @angular/cli. 23 00:01:37,859 --> 00:01:41,797 The -g option tells the NPM package manager to install 24 00:01:41,797 --> 00:01:44,660 the Angular CLI globally. 25 00:01:44,660 --> 00:01:50,048 That'll make the CLI commands available from within any directory in our system. 26 00:01:50,048 --> 00:01:52,743 Go ahead and press Enter to run the command. 27 00:01:58,341 --> 00:02:03,405 Now that we've installed the CLI, we'll have the ng command available globally. 28 00:02:03,405 --> 00:02:07,125 To verify this, we can run the command ng 29 00:02:07,125 --> 00:02:10,683 which displays a list of the available commands and options. 30 00:02:10,683 --> 00:02:15,225 I'll press Cmd +- a bit to reduce the size of my font. 31 00:02:15,225 --> 00:02:18,280 That'll make it easier to review the list of commands. 32 00:02:18,280 --> 00:02:22,593 As you can see, there are a fair number of commands and options available. 33 00:02:29,015 --> 00:02:33,905 To see information about a specific command, we can run the command ng help, 34 00:02:33,905 --> 00:02:38,960 followed by the CLI command we want to learn more about, say, the new command. 35 00:02:41,150 --> 00:02:44,520 Or we can type ng new, 36 00:02:44,520 --> 00:02:49,940 followed by--help to do exactly the same thing. 37 00:02:49,940 --> 00:02:52,000 Now that we have the CLI installed, 38 00:02:52,000 --> 00:02:55,970 we're ready to create our first app which is what we'll do next.