Error plugin.xml missing while trying to install geolocation plugin in my ionic 2 project

i’m having this error : cannot find plugin.xml for plugin “package” !! what i’m supposed to do !! please i need some help when i typed cordova plugin list i get : no plugins added

What commands are you executing to get this error?
What exactly is the error?

cordova plugin add geolocation
error : cannot find plugin.xml for plugin “package”

I believe the command you would run is:

cordova plugin add cordova-plugin-geolocation

3 Likes

“geolocation” is probably not a real Cordova plugin.

1 Like

thank youuuu it worked :smiley: