My current Angular cli Version is 1.6.6 and Angular Version is 5.2.2
I am trying to update it to Angular 7 and new angular cli version is 7.3.6
When I try to upgrade using ng update @angular/cli
, an error in console prints
The specified command update is invalid. For available options, see ng help.
Your global Angular CLI version (7.3.6) is greater than your local
version (1.6.6). The local Angular CLI version is used.
It seems like this update command has been removed. I have followed the official documentation.
There is an issue in the official documentation.
It says to run npm install @angular/cli
but actually you need to run
npm install --save-dev @angular/cli@latest
This will update the package.json, so that you can continue from there.
After this, you can run ng update @angular/cli
and so on.