Updating cli to 5.2.1 results in CLI 4.12.0 version O_o

I’m trying to update my ionic cli version to the latest avaiable (5.2.1) but i have some issue that i don’t understand.

That’s what i did:

npm uninstal -g ionic
npm instal -g ionic@5.2.1

the output is:

  • ionic@5.2.1
    added 224 packages from 167 contributors in 34.544s

However if i run

ionic -v

The output is:

_ _
() ___ _ __ () ___
| |/ _ | '_ | |/ |
| | (_) | | | | | (

||___/|| |||___| CLI 4.12.0

What’s wrong with those steps?

Maybe you have installed ionic in local folder too (without the -g flag)? You can safely uninstall that.

What this sounds like is that there’s maybe an environment issue? Like you installed one package with sudo and this one without it?

I forgot to mentioned that my OS is Windows 10.
I’ll try to remove everithing manually and start from scratch, thank you anyway :slight_smile: