I'm getting pkg is not defined when attempting to sudo plugman createpackagejson {path of plugin} I can see there's plenty on Github about this issue but no precise directions on work around or how to fix it. Please could someone advise?
pkg is not defined when using Plugman
1k views Asked by Ben Morris At
4
There are 4 answers
1
On
I met the same issue when using keymob-plugin.
This issue was fixed with pull request which already merged into master but not published yet,maybe it will be available with the next release of cordova-lib.
For now you can create package.json manually because the content of package.json depends on plugin.xml. You can also read the package.json in other 3rd plugins and the npm documentation of package.json .
So apparently this has been addressed, but a fix has not been released, yet. https://github.com/apache/cordova-lib/pull/597 .