The version am using is 6.0.8.While trying adding angular/pwa in my project am getting this error. In my cmd prmt it shows my angular cli version as 6.0.8, but inmy bash cmd it shows version 1.7. can someone help me on this.
@angular/cli: 1.7.4
Asked
Active
Viewed 171 times
-2

VinoPravin
- 947
- 3
- 17
- 32
3 Answers
1
In order to use ng add
you must have cli version >=6
but you are using Angular CLI version of 1.7.4
, That is why this command is not supported in your installed CLI.
For more information about changelog and Commands see here in changlog -

Pardeep Jain
- 84,110
- 37
- 165
- 215
-
1Downvoters , better to comment and then downvote so that I can correct myself If I an wrong somewhere – Pardeep Jain Jun 26 '18 at 08:31
0
Actually it was my mistake, I've updated the global cli, but my project's local cli was not get updated, andso I got such error. I've update my projects angular cli dependency with 'npm update @angular/cli' which updated the old cli with the latest one, and is solved my problem :)

VinoPravin
- 947
- 3
- 17
- 32