Checking the version of angular-cli installed?

Is there a way to check for a specific version of angular-cli installed globally on my machine? I am in a Windows environment. npm -v and node -v only gives me the version of npm and node respectively, and I cannot find any commands with ng.

I am trying to start a project that I am working on and have been running an older version of angular-cli using npm. However, after installing other demo projects, my main project no longer works without uninstalling and reinstalling angular-cli in a specific version.

+168
angular npm angular-cli
Dec 07 '16 at 20:36
source share
12 answers

angular cli can tell its version when launched with the version flag

ng --version 
+346
Dec 07 '16 at 20:53 on
source share
โ€” -

Performance:

 ng v 

or

 ng --version 

I will tell you the current angular cli version number

enter image description here

+58
Jun 14 '17 at 22:20
source share

You can use npm list -global to display all versions of the components installed on your system.
To view specific lists at different levels, use --depth .

eg:

 npm list -global --depth 0 
+11
Aug 16 '17 at 6:28
source share

ng --version or short ng v seem to be correct answers, but there are some important details :

If you run ng v inside your angular project folder , the project folder will show your local version of Cli installed in your project (package.json)

If you run ng v outside your angular project folder this will always show the global version of Cli

+9
Mar 15 '18 at 5:39
source share

Go to the path to the folder in cmd where angular is installed and type ng --version it will show your version of angular. Thank you

+5
Aug 16 '17 at 5:58 on
source share

Just enter any of the below on the command line,

ng --version OR ng v OR ng -v

The output will be like

Screenshothot

It mentions not only the Angular version, but also the Node version. I am using Angular 6.

+5
Oct 10 '18 at 8:31
source share

Just run the following command:

ng v

+3
Dec 17 '17 at 15:40
source share

At the command line we can check our installed version of ng.

 ng -v OR ng --version OR ng version 

This will give you this:

  _ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / โ–ณ \ | '_ \ / _' | | | | |/ _' | '__| | | | | | | / ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | | /_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___| |___/ Angular CLI: 1.6.5 Node: 8.0.0 OS: linux x64 Angular: ... 
+3
Apr 02 '18 at 15:45
source share

You can find using CLI ng --version

How i use

angular-cli: 1.0.0-beta.28.3

node: 6.10.1

OS : Darwin x64

enter image description here

+1
Dec 18 '17 at 10:22
source share

Just run the following commands:

 ng --version 

OR

  ng -v 

Output to the terminal:

  / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / โ–ณ \ | '_ \ / _' | | | | |/ _' | '__| | | | | | | / ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | | /_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___| |___/ Angular CLI: 6.0.8 Node: 10.15.0 OS: linux x64 
+1
Jan 09 '19 at 13:54
source share

ng version or ng --version or ng v OR ng -v

You can use these 4 commands to check which version of angular-cli is installed on your computer.

+1
Jan 26 '19 at 12:59
source share
 ng --version 

ng - version output

Please look at the image above.

0
Aug 17 '19 at 7:16
source share



All Articles