Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to upgrade global angular CLI from 7 to 8

I've read several tutorials and SO on how to upgrade Angular CLI from 7 to 8. This should be a simple thing to do. No matter what I do when I run ng version I get 7.2.2.

enter image description here

I've tried running uninstall, install, upgrade, using sudo, specifying ng update @angular/cli@^8, @latest. No matter what I get the same result. I'm not getting any errors either.

I'm using Mac 10.14.6 (Mojave)

How can I run a simple upgrade to angular CLI 8?

like image 728
P.Brian.Mackey Avatar asked Jan 25 '23 10:01

P.Brian.Mackey


1 Answers

I've tried running uninstall, install, upgrade, using sudo, specifying ng update @angular/cli@^8, @latest. No matter what I get the same result. I'm not getting any errors either.

That will update the CLI for the package.json in the current directory.

You can update the global package like this:

npm uninstall -g @angular/cli
npm install -g @angular/cli
like image 193
Reactgular Avatar answered Jan 27 '23 23:01

Reactgular