Checking version of angular-cli that's installed?

后端 未结 13 633
情书的邮戳
情书的邮戳 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 11:56

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

    0 讨论(0)
  • 2020-12-12 11:56

    Simply run the following command :

    ng v

    0 讨论(0)
  • 2020-12-12 11:56

    Go to the package.json file, check the "@angular/core" version. It is an actual project version.

    0 讨论(0)
  • 2020-12-12 11:57

    Simple run the following commands:

    ng --version 
    

    OR

     ng -v
    

    Output on terminal:

          / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
       / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
      / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
     /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    
    
    Angular CLI: 6.0.8
    Node: 10.15.0
    OS: linux x64 
    
    0 讨论(0)
  • 2020-12-12 11:59

    Execute:

    ng v
    

    or

    ng --version
    

    tell you the current angular cli version number

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

    You can use npm list -global to list all the component versions currently installed on your system.
    For viewing specific lists at different levels use --depth.

    e.g:

    npm list -global --depth 0
    
    0 讨论(0)
提交回复
热议问题