What is the version of angular that I have installed?

0

I'm trying to know what version of angular I have installed on my laptop but I do not get that information

    
asked by Luis Rodriguez 17.10.2018 в 00:10
source

3 answers

2

Let's start with definitions.

  

Angular CLI : It is a tool to initialize, develop, automate and maintain Angular applications. p>      

Angular : It is a development platform for creating mobile and desktop web applications using Typescript / JavaScript and others languages.

Taking into account the above Angular CLI is installed as a command ( ng ) to be used in the console and that speeds up the process of creating an Angular application.

Once you created your application with the ng create my-app command in this case Angular CLI v6.2.5 will create an application with Angular v6.1.0

I recommend that you go through the Angular initiation tutorial:

link

And if you need more information about Angular CLI you can consult the following link:

link

    
answered by 17.10.2018 в 00:38
0

Hello, how can you try using the command:

ng version

But you must run it within a directory that contains angular (Example some of your projects) since that command needs the packages.config

I hope I help you.

    
answered by 17.10.2018 в 00:36
0

You can have several versions of Angular at the same time, or rather you can have more than one Angular project each with a different version , so it does not appear when using ng --version but if the of Angular CLI which is an application that you have installed in Node , and has a certain version.

To know the Angular version used in an Angular application: go to the project folder and open the "package.json" file, search for "dependencies". You will find something like this:

"dependencies": {
    "@agm/core": "^1.0.0-beta.2",
    "@angular/animations": "^5.0.0",
    "@angular/common": "^5.0.0",
    "@angular/compiler": "^5.0.0",
    "@angular/core": "^5.0.0",
    "@angular/forms": "^5.0.0",
    "@angular/http": "^5.0.0",
    "@angular/platform-browser": "^5.0.0",
    "@angular/platform-browser-dynamic": "^5.0.0",
    "@angular/router": "^5.0.0",
    "@ng-bootstrap/ng-bootstrap": "^1.1.2",
    "bootstrap": "^4.0.0-beta.2",
    "core-js": "^2.4.1",
    "ngx-bootstrap": "^2.0.0-beta.8",
    "ngx-i18nsupport": "^0.9.0",
    "node-sass": "^4.9.0",
    "rxjs": "^5.5.2",
    "zone.js": "^0.8.14"
  },

With the previous query you have the most detailed information. Now, if you want to know the Angular version of the project, in a general way, in the same directory where this file is located, the command ng --version now has access to the Angular configuration, of the current project, and now if, it will indicate the version:

    
answered by 17.10.2018 в 00:38