Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Angular version undefined?

Tags:

npm

angular

I tried to check the angular version of the project I'm working on by doing ng version but the value I'm getting are the ff:

Angular CLI: 8.2.1
Node: 10.16.0
OS: win32 x64
Angular: undefined

how do I know what version of my angular?

like image 927
JC Borlagdan Avatar asked Jul 25 '26 08:07

JC Borlagdan


2 Answers

It sounds like you are running this command outside the Angular project folder where there is no package.json or angular.json

https://github.com/angular/angular-cli/issues/17683

like image 62
Omar Hasan Avatar answered Jul 27 '26 08:07

Omar Hasan


This is because as of Angular 7, the version of Angular core and Angular CLI need to be aligned, so their versions are likely to be the same. As your version is above 7, there is no explicit need to mention Angular Version seeing that Angular CLI version is already mentioned. Source: https://angular.io/guide/releases

like image 22
Adhi Sekar Avatar answered Jul 27 '26 06:07

Adhi Sekar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!