Sitemap

Member-only story

How to Check Angular Version in CMD

--

Press enter or click to view image in full size
How to Check Angular Version in CMD

For more questions and answers visit our website at Frontend Interview Questions

When working with Angular, it’s essential to know the version of Angular CLI and the Angular framework you are using. This information can help ensure compatibility with various libraries and tools. Checking the Angular version is straightforward and can be accomplished using the command line interface (CMD). This guide will walk you through the process with a simple example.

Step-by-Step Guide

1. Open Command Prompt

First, you need to open the Command Prompt on your Windows machine. You can do this by pressing Win + R, typing cmd, and hitting Enter. Alternatively, you can search for “Command Prompt” in the Start menu.

2. Check Angular CLI Version

To check the version of Angular CLI installed globally on your system, use the following command:

ng --version

or

ng v

This command will display the version of Angular CLI along with the versions of the core Angular packages. The output will look something like this:

Angular CLI: 12.2.0
Node: 14.15.0
Package Manager: npm 6.14.8
OS: win32 x64

Angular: 12.2.0
…

--

--