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
Maybe a stupid question, but you changed out all your api keys right? If not your best bet is either updating, or uninstalling and reinstalling your packages.
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.