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:
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.
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.
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.
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 --versionThe ng –version command output the following details on your terminal screen, It contains the installed Angular CLI, node, OS version.
# or
ng v
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.
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 0As 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