This chapter explains how to install Angular 8 on your machine. Before moving to the installation, let’s verify the prerequisite first.
Prerequisite
As we know already, Angular is written in TypeScript. We need Node and npm to compile the files into JavaScript after that, we can deploy our application. For this purpose, Node.js must be installed in your system. Hopefully, you have installed Node.js on your machine.
We can check it using the below command −
node --version
You could see the version of the node. It is shown below −
v14.2.0
If Node is not installed, you can download and install by visiting the following link − https://nodejs.org/en/download/
Angular 8 installation
Angular 8 CLI installation is based on very simple steps. It will take not more than five minutes to install.
npm is used to install Angular 8 CLI. Once Node.js is installed, npm is also installed. If you want to verify it, type the below command
npm -v
You could see the version below −
6.14.4
Let’s install Angular 8 CLI using npmas follows −
npm install -g @angular/cli@^8.0.0
To verify Angular 8 is properly installed on your machine, type the below command −
ng version
You could see the following response −
Angular CLI: 8.3.26
Node: 14.2.0
OS: win32 x64
Angular: ...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.803.26
@angular-devkit/core 8.3.26
@angular-devkit/schematics 8.3.26
@schematics/angular 8.3.26
@schematics/update 0.803.26
rxjs 6.4.0