How can I check which version of Angular I'm using?

前端 未结 28 1163
死守一世寂寞
死守一世寂寞 2020-11-28 18:23

How can I tell which version of Angular I am using?

I have tried:

angular --version
angular --v
angular -version
angular -v

but get

28条回答
  •  無奈伤痛
    2020-11-28 19:02

    There are multiple ways:

    1. You may verify it from your package.json file
    2. You use the following command:

    ng --version

    The command above will result in the following output:

    Angular CLI: 7.0.3

    Node: 9.4.0

    OS: darwin x64

    Angular: 7.0.1

    ... animations, common, compiler, compiler-cli, core, forms

    ... http, language-service, platform-browser

    ... platform-browser-dynamic, router

    Package Version


    @angular-devkit/architect 0.10.3

    @angular-devkit/build-angular 0.10.3

    @angular-devkit/build-optimizer 0.10.3

    @angular-devkit/build-webpack 0.10.3

    @angular-devkit/core 7.0.3

    @angular-devkit/schematics 7.0.3

    @angular/cli 7.0.3

    @ngtools/webpack 7.0.3

    @schematics/angular 7.0.3

    @schematics/update 0.10.3

    rxjs 6.3.3

    typescript 3.1.4

    webpack 4.19.1

    So, the version of Angular, Angular CLI, Node and many other packages can be verified from here.

提交回复
热议问题