Introduction to the Angular CLI
The Angular CLI is a tool created by the Angular team that improves the developer experience while building Angular applications. It hides the complexity of scaffolding and configuring an Angular application while allowing developers to concentrate on what they do best – coding! Before we can start using the Angular CLI, we need to set up the following prerequisites in our system:
- Node.js: A JavaScript runtime that is built on the v8 engine of Chrome. You can download any Long-Term Support (LTS) version from https://nodejs.org.
- npm: A package manager for the Node.js runtime.
We can then install the Angular CLI using npm
from the command line:
npm install -g @angular/cli
We use the -g
option to install the Angular CLI globally, since we want to create Angular applications from any operating system path.
Installing the Angular CLI may require administrative privileges in some operating systems.
...