1
votes

Hi I've tried to uninstall global @angular/cli but I still can use ng -v and it reports warning: Your global Angular CLI version (1.7.0) is greater than your local

I tried:

npm uninstall -g angular-cli
npm uninstall -g @angular/cli
npm cache verify

But ng -v still report the warning that my global is greater than local. Please help. Thank you in advance!

2
Is this actually causing an issue, or is it just annoying you a bit? - R. Richards
just annoying. I don't want to set global warning version off since I know when creating new component, it will use the global cmd - Evan

2 Answers

0
votes

Try the Following steps to uninstall angular cli completely

npm uninstall -g angular-cli // Use sudo before to give administrator permission
npm uninstall -g @angular/cli // Use sudo before to give administrator permission

npm cache clean or npm cache clean --force

To reinstall the latest version try this

npm install -g @angular/cli@latest
-1
votes

Use this command to uninstall the angular-cli ,it will update the dependencies and also do try to clear the cache once.

npm uninstall --save-dev angular-cli