Running npm install -g ionic updates the CLI version.
You need to run ionic lib update from the root of your project but this will override the www/lib/ionic folder so if you don’t have it there you will have to move it.
See this topic for more info.