Ionic CLI not updating on MAC

1k Views Asked by At

I have been trying to update Ionic CLI, I can use the install from NPM and it says it is installing version 2, but if I run Ionic --v it returns 1.7.15. I am guessing it is installed locally, but not sure how I can remove it to let it use the updated global one. I have tried manually deleting from the user node_modules and that. Any ideas?

1

There are 1 best solutions below

0
On

You should just be able to run npm install -g [email protected] in terminal and it will update the global version of ionic.

If that doesn't work then just remove ionic (npm uninstall -g ionic) and install again using the command above.