Reputation: 1024
Running in Windows 10 with:
I had Angular/CLI 11.0.1 installed globally. I'm stuck trying to upgrade it to v12, but no matter what I do, ng --version returns Angular CLI: 11.0.1.
I've tried:
These all run ok, with no errors.
However, ng --version still returns Angular CLI: 11.0.1.
Any ideas?
Upvotes: 0
Views: 1140
Reputation: 1024
Didn't get to the cause of the problem. However, I did fix it by uninstalling Node and clearing the node directory. Then reinstalling Node and Angular from scratch. A bit of a pain.
Upvotes: 1
Reputation: 1050
Run ng update @angular/core@12 @angular/cli@12
To get to know about Angular 11.0 -> 12.0, refer this update guide:
https://update.angular.io/?l=3&v=11.0-12.0
Upvotes: 0