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
ng --version
Please take a look at the above image.
angular cli can report its version when you run it with the version flag
ng --version
Simply just enter any of below in the command line,
ng --versionORng vORng -v
The Output would be like,
Not only the Angular version but also the Node version is also mentioned there. I use Angular 6.
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:
...
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.
ng --version or short ng v kinda correct answers, but there are some important details:
If you running
ng vinside your angular cli project folder it will show your local cli version installed in your project (package.json)If you running
ng voutside your angular cli project folder it will always show the global cli version