Checking version of angular-cli that's installed?

后端 未结 13 635
情书的邮戳
情书的邮戳 2020-12-12 11:46

Is there a way to check the specific version of angular-cli that\'s installed globally on my machine? I\'m in a Windows environment. *npm -v* and *node -v

相关标签:
13条回答
  • 2020-12-12 12:01
    ng --version
    

    Please take a look at the above image.

    0 讨论(0)
  • 2020-12-12 12:03

    angular cli can report its version when you run it with the version flag

    ng --version
    
    0 讨论(0)
  • 2020-12-12 12:05

    Simply just enter any of below in the command line,

    ng --version OR ng v OR ng -v

    The Output would be like,

    Not only the Angular version but also the Node version is also mentioned there. I use Angular 6.

    0 讨论(0)
  • 2020-12-12 12:07

    In Command line we can check our installed ng version.

    ng -v OR ng --version OR ng version
    

    This will give you like this :

     _                      _                 ____ _     ___
    
       / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
      / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
     / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
    /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                   |___/
    
    Angular CLI: 1.6.5
    Node: 8.0.0
    OS: linux x64
    Angular: 
    ...
    
    0 讨论(0)
  • 2020-12-12 12:08

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

    You can use this 4 commands to check the which version of angular-cli installed in your machine.

    0 讨论(0)
  • 2020-12-12 12:14

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

    If you running ng v inside your angular cli project folder it will show your local cli version installed in your project (package.json)

    If you running ng v outside your angular cli project folder it will always show the global cli version

    0 讨论(0)
提交回复
热议问题