您现在的位置是:首页 > 文章详情

Try --force to use installed plugin as dependency.

日期:2017-05-16点击:294
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/inforstack/article/details/72358396
 cordova plugin add cordova-plugin-camera Installing "cordova-plugin-camera" for android Failed to install 'cordova-plugin-camera': CordovaError: Version of installed plugin: "cordova-plugin-compat@1.0.0" does not satisfy dependency plugin requirement "cordova-plugin-compat@^1.1.0". Try --force to use installed plugin as dependency.     at C:\Users\cluo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:581:33     at _fulfilled (C:\Users\cluo\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:787:54)     at self.promiseDispatch.done (C:\Users\cluo\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:816:30)     at Promise.promise.promiseDispatch (C:\Users\cluo\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:749:13)     at C:\Users\cluo\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:509:49     at flush (C:\Users\cluo\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:108:17)     at _combinedTickCallback (internal/process/next_tick.js:73:7)     at process._tickCallback (internal/process/next_tick.js:104:9) Error: Version of installed plugin: "cordova-plugin-compat@1.0.0" does not satisfy dependency plugin requirement "cordova-plugin-compat@^1.1.0". Try --force to use installed plugin as dependency 
错误信息大概意思就是,你如果要安装 cordova-plugin-camera 插件,首先得强制把compat升级到1.1.0的版本,执行以下命令:
 cordova plugin remove --force cordova-plugin-compat cordova plugin add cordova-plugin-compat cordova plugins cordova platform remove android cordova platform add android cordova plugin add cordova-plugin-camera 
原文链接:https://yq.aliyun.com/articles/685149
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章