ionic cordova resources
stackoverflow error-in-firebase-app-shared-promise-js) to fix error when trying to run ionic cordova emulate
$npm install promise-polyfill --save-exact
stackoverflow fix error cannot read property 'replace' of undefined when runing ionic cordova emulate ios
cd platforms/ios/cordova/node_modules/
sudo npm install ios-sim@latest
if you have the same error when emulate android then
on file /platforms/android/cordova/lib/emulator.js line 202: replace
var num = target.split('(API level ')[1].replace(')', '');
to
var num = target.match(/\d+/)[0];