The plugin install flow doesn't wait for https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/plugman/fetch.js#L183 promise to complete. Need to audit the promise flow here and fix it.
This seems to be an issue due to platform level scripts doing async operations. They shell out and don't wait for promises to resolve. Marking this as won't fix since we should really review all platform level scripts to make sure they are synchronous