0
So Matheus, you’ve answered this several times and I think you haven’t looked long before you ask this question and it’s quite simple to solve this mistake.
Uninstall Ionic with this command
npm uninstall -g --save ionic
then clears the cache (if it doesn’t work put the --force)
npm cache clean (--force)
and installs it globally
npm install -g ionic