How to install a Specific Version of Angular-cli?
How to install a Specific Version of Angular-cli?
Hey Folks,
In this tutorial, you will learn angular cli global install specific version. We will use install specific angular cli version. This tutorial will give you a simple example of uninstall angular cli and install specific version. This example will help you install angular cli globally specific version.
Uninstall the Angular-cli
we can use following command to uninstall the angular-cli.
npm uninstall -g @angular/cli
Install Specific Version of Angular-cli
To install a specific version of Angular CLI, you can use the npm package manager and the `@angular/cli` package. Here's the command to install a specific version:
npm install -g @angular/cli@angular-cli-version
Replace `angular-cli-version` with the specific version number you want to install.
For example, if you want to install Angular CLI version 12.0.0, the command would be:
npm install -g @angular/cli@12.0.0
This command installs the Angular CLI globally on your machine with the specified version. After the installation is complete, you can use the `ng` command to interact with Angular CLI in your projects.
Create Project with new Angular-cli
Create a new project using ng new command.
ng new my-app
I hope it can help you...