How can I tell which version of Angular I am using?
I have tried:
angular --version
angular --v
angular -version
angular -v
but get
You could also check your package.json:
"dependencies": {
"@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",
}
(The caret ^
will update you to the most recent major version (the first number).
^4.3.0
will match any 4.x.x
release including 4.4.0
, but will hold off on 5.0.0
.
The tilde ~
matches the most recent minor version (the middle number).
~4.3.0
will match all 4.3.x
versions, but will miss 4.4.0
.)