我的系统依赖项:
- 科尔多瓦:@7.1.0
- 插件:@2.0.0
我想用于plugman
仅将插件安装到特定平台(例如 android)
我已经阅读了文档,工作流程和用法还不是很清楚。创建全新的cordova项目后,成功运行以下命令:
cordova create hello-world
cordova platform add android
我想使用以下命令安装我的第一个特定于平台的插件:
plugman install --platform android --project ./ --plugin cordova-plugin-battery-status
我收到以下错误:
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\cordova-lib\src\plugman\fetch.js:168:18
at _fulfilled (C:\Users\liranCo\AppData\Roaming\npm\node_modules\plugman\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\liranCo\AppData\Roaming\npm\node_modules\plugman\node_modules\q\q.js:816:30)
at Promise.promise.promiseDispatch (C:\Users\liranCo\AppData\Roaming\npm\node_modules\plugman\node_modules\q\q.js:749:13)
at C:\Users\liranCo\AppData\Roaming\npm\node_modules\plugman\node_modules\q\q.js:509:49
at flush (C:\Users\liranCo\AppData\Roaming\npm\node_modules\plugman\node_modules\q\q.js:108:17)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
at Function.Module.runMain (module.js:686:11)
at startup (bootstrap_node.js:187:16)
添加第一个特定于平台的插件的正确工作流程是什么?