What is going on here?
On my laptop, I ran npm uninstall -g angular-cli
, and it is gone.
However, on my desktop, I can still run ng --version
after removing angular-cli globally.
What is going on and how can I fix this?
What is going on here?
On my laptop, I ran npm uninstall -g angular-cli
, and it is gone.
However, on my desktop, I can still run ng --version
after removing angular-cli globally.
What is going on and how can I fix this?
maybe you need to clean cache, try this:
I had the same problem with updating angular-cli,
ng -v
was always returning the same version after few installs/uninstalls ofangular-cli
or new@angular/cli
. The problem was that in nodejs installation folder there wereng
andng.exe
files. I removed them, installed @angular/cli and had fresh version of it.Your npm version might have changed, relocating the binaries folder. Thus, npm cannot uninstall something which it does not know it existed in the first place. In unix,
ls -l $(whereis ng)
might help you out eliminate old folders.There is always a global installation and a local one in your project.
So run
npm uninstall angular-cli
in your project path and its gone finally! :)