How to update Ionic version on MAC

Run the following command to update the Ionic version on MAC.

npm i -g @ionic/cli

Run the following command to confirm the version of Ionic

ionic -v

The above command will give you output like this:

6.20.1

Your Ionic version has been updated after following that above steps.