Here are the system dependencies:
- cordova: @7.1.0
- plugman: @2.0.0
I am trying to use plugman
specifically for installing plugins on a particular platform (such as android).
Having reviewed the documentation, I find that the workflow and usage is not entirely clear. Following the creation of a new cordova project, I executed the following commands successfully:
cordova create hello-world
cordova platform add android
My intention was to install my first plugin specific to a platform using this command:
plugman install --platform android --project ./ --plugin cordova-plugin-battery-status
However, I encountered the following error:
Cannot read property 'fail' of undefined TypeError: Cannot read property 'fail' of undefined
at C:\Users\liranCo\AppData\Roaming\npm\node_modules\plugman\node_modules\cordov...
...
Could you provide guidance on the correct workflow for adding the initial platform-specific plugin?