Friday, April 24, 2020

How to Check Installed Angular CLI Version

Check Angular CLI Version
Let’s find out various ways through which we can find out installed Angular CLI version.
Open a new terminal or command-line tool and run either of the given below command:
ng --version
# or
ng v
The ng –version command output the following details on your terminal screen, It contains the installed Angular CLI, node, OS version.
It will also provide various Angular package details, such as @angular-devkit/architect, @angular-devkit/core, @angular-devkit/schematics, @schematics/angular, @schematics/update and rxjs.
How to Check Installed Angular CLI Version

There is another way through which we can check the installed angular CLI version. However, this method will also tell you the other libraries and packages installed in your local development system.
Run the following command in your terminal.
npm list --global --depth 0
As we can see, we have currently @angular/cli@9.0.0-rc.7 version installed.

If you run the above command from your development system’s root folder, you will get the global angular CLI version.
If you run the above commands from a project root folder, you will see the angular version which is being used in that particular project.

No comments:

Post a Comment