I trying to adding my own cordova custom plugin in in to ionic project but while adding it gives me error.Invalid Plugin! needs valid package.json


#1

I trying to adding my own cordova custom plugin in in to ionic project but while adding it gives me error.Invalid Plugin! needs valid package.json. please help me asap .


#2

Your plugin needs a valid package.json.
Look at all the other plugins to find out what a valid package.json looks like.


#3

i am creating package.json file using this command $ plugman createpackagejson /path/to/your/plugin
is it correct?


#4

Possible, that is a Cordova thing and you are in the Ionic Forums.
I suggested you just copy what all the other plugins are doing.


#5

Thnaks its working for me…::slight_smile::+1: