I am asking that because npm is so slow, so I am using yarn
Assuming you are using the ionic-cli, it looks like you can run the following command:
ionic-cli
ionic config set -g npmClient yarn
Reference