How to Upgrade to latest version of CLI?


I am trying to upgrade Ionic to the latest version. Looking here, it shows that the latest version is 3.0.0. I also follow this tutorial.

So I do the following:

sudo npm uninstall -g ionic
sudo npm install -g ionic@latest


Richards-MacBook-Pro:theWhoZoo richardmarais$ sudo npm install -g ionic
/Users/richardmarais/npm-global/bin/ionic -> /Users/richardmarais/npm-global/lib/node_modules/ionic/bin/ionic
└── ionic@3.0.0 

But when I run:

ionic -v

I get:



ionic info

I get:

Your system information:

Cordova CLI: 6.4.0 
Ionic Framework Version: 3.1.1
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 1.3.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS Sierra
Node Version: v7.10.0
Xcode version: Xcode 8.3.2 Build version 8E2002

I would expect it to update the Ionic CLI Version: 2.1.18 to 3.0.0. Is that a correct assumption? If so, do you know what I am doing incorrectly?



Somehow you seem to have two different versions of the CLI installed.

  1. What do you get on sudo ionic -v?
  2. Where do you run ionic -v to get 2.1.18?

If possible, get rid of everything (Cordova, Ionic, npm and node) and install nvm. Then you don’t need to use sudo any more and have clean installations that are easy to manage.


I run this all from the cmd line at the base of my ionic project.

sudo ionic -v



ionic -v



What do you get if you run it outside of your Ionic project?
Do you maybe have a “local” installation of CLI inside the project folder? (Whatever that may look like…)


When I run:

ionic -v


sudo ionic -v

from outside the project, they both also retuen:



Should I do a full uninstall of ionic?


Yes, plus NodeJS and npm. Start new via nvm.


Please see: