Forrest logo
back to the ng tool

ng:tldr:06eaa

ng: Check the version of your current Angular installation.
$ ng version
try on your machine

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.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ng tool