npm install -g cordova
->Installs cordova normally to inorder to perform cordova related commands.
cordova platform add ios / cordova platform add android
->Add the corresponding platform to your cordova app.
->Make sure you are in the 'mobile' directory when you perform any commands related to cordova.
cordova build ios / cordova run android.
->Build the android/ios project.
cordova run ios / cordova run android
->Runs the application in the device / emulator - which ever is selected as target.
IOS
->install Xcode if not already installed.
->xcode-select —install
->npm install ios-deploy -g
ANDROID
->install android studio
->install all sdk and api level packages