How can I install platforms in my project Cordova with Yarn?

NPM is very slow, so I am trying to use yarn