![Forrest logo](/images/logo.png)
ng:tldr:06eaa
The command "ng version" is used in Angular CLI (Command Line Interface) to display the version of Angular you have installed on your local machine.
When you run the "ng version" command, it checks the version of the Angular CLI installed globally and also the version of Angular packages used in your project. It displays both versions in the terminal or console.
The output typically includes information about the Angular CLI version, the Angular DevKit version, the Angular compiler version, and other related packages. It is useful to verify that you are running the correct versions and to troubleshoot any compatibility issues.
For example, a possible output of the "ng version" command could be:
- Angular CLI: 12.2.3
- Node: 14.17.1
- Package Manager: npm 6.14.13
- Angular DevKit: 12.2.3
- Angular Compiler: 12.2.3
This command helps developers ensure they have the necessary versions of Angular and related dependencies installed.