最近Ionic2项目安装cordova-plugin-camera插件,一直报错。(已经Add了android的platform),大概的错误信息如下。
[ERROR] Cordova encountered an error. You may get more insight by running the Cordova command above directly. [ERROR] An error occurred while running cordova plugin add cordova-plugin-camera --save (exit code 1): Installing "cordova-plugin-camera" for android Failed to install 'cordova-plugin-camera': Error at D:\Program Files\nodejs\node_global\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:581:33 at _fulfilled (D:\Program Files\nodejs\node_global\node_modules\cordova\node_modules\q\q.js:787:54) at self.promiseDispatch.done (D:\Program Files\nodejs\node_global\node_modules\cordova\node_modules\q\q.js:816:30) at Promise.promise.promiseDispatch (D:\Program Files\nodejs\node_global\node_modules\cordova\node_modules\q\q.js:749:13) at D:\Program Files\nodejs\node_global\node_modules\cordova\node_modules\q\q.js:509:49 at flush (D:\Program Files\nodejs\node_global\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.
解决方案:
Here's the commands we ran from the CLI:
cordova plugin remove cordova-plugin-compat --force cordova plugin add cordova-plugin-compat@1.1.0
相关推荐
Upgrading to DB2 Version 9.7
Upgrading and Repairing Servers Pages: 1128
Note: If you are upgrading Build Report Tool in your project, delete the current BuildReport folder first before importing the new one! This will eliminate any potential metadata file conflicts with ...
This book is the world famous work about upgrading and repairing PCs and laptops.
Upgrading Oracle Applications
** If you're upgrading from a version , check the changelog of the 1.2.0 version, there are breaking changes! [Changelog] (CHANGELOG.md) From version 1.2.0 you can choose between three switch design:...
Oracle 安装升级迁移Different Upgrade Methods For Upgrading Your Database(11.2)官方英文版
For 25 years, Upgrading and Repairing PCs has been the world’s #1 guide to PC hardware: The single source for reliable information on troubleshooting and fixing problems, adding hardware, optimizing ...
Upgrading the Android SDK 42 Problems with the Android Software Development Kit 42 Exploring the Android SDK 43 Understanding the Android SDK License Agreement 43 Reading the Android SDK ...
Upgrading to Visual Basic .NET Upgrading to Visual Basic .NET Upgrading to Visual Basic .NET
Upgrading and Repairing PCs, 19th Edition 2010。2011年,就是上学期我刚学完的,我专业networking。这是第一学期的基础课。很好的资源,我买的正版。根大家分享。PDF版。
Oracle 安装升级迁移Different Upgrade Methods For Upgrading Your Database(11.1)官方英文版
ATTN: When upgrading from an older version, it is best to first delete the SteamVR folder in your project, and then import the package. You may also want to delete any "openvr_api" files in your ...
Problems Upgrading code from v6 to .NET Problems Upgrading code from v6 to .NET
Upgrading to Office SharePoint Server 2007.
Harness the power of the Android SDK by building three immersive and captivating games About This Book Implement the critical main game loop and structure your games to enable an array of advanced ...
MS Press - Upgrading Visual Basic 6.0 to VB.NET
此文件详述FreeRTOS及SafeRTOS的差别,主要包括: 1. 记忆体配置 2. 函式参数(Function parameter)检查 3. 内部资料(Internal data)检查