i am trying to install googlemap native using the following command.
sudo ionic cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps --variable API_KEY_FOR_ANDROID="api key is written here" --variable API_KEY_FOR_IOS="api key is written here"
and i am getting is cordova is not valid task.
cordova version 6.5.0
Please realize that running ionic under sudo even once is something that is likely to damage the permissions on various places in your project. It’s not something that should ever be done, and certainly not on a whim. Once you’ve done it once, you must repair all permission damage before taking any further action, or else you have no way of knowing whether it was your earlier use of sudo that caused whatever problem you are now seeing.