我正在尝试从Apache官方网站安装cordova-plugin-media
。
但是我得到了这个错误:
cordova plugin add cordova-plugin-media
Installing "cordova-plugin-media" for android
Failed to install 'cordova-plugin-media': CordovaError: Version of installed plugin: "cordova-plugin-file@4.3.3" does not satisfy dependency plugin requirement "cordova-plugin-file@^6.0.0". Try --force to use installed plugin as dependency.
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:557:37
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:854:54)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:883:30
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:570:49
at runSingle (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:137:13)
at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:125:13)
at process._tickCallback (internal/process/next_tick.js:61:11)
Version of installed plugin: "cordova-plugin-file@4.3.3" does not satisfy dependency plugin requirement "cordova-plugin-file@^6.0.0". Try --force to use installed plugin as dependency.
我了解到cordova-plugin-file有一个分类,但是我不明白, 文件插件是媒体插件的依赖项还是相反?
该文件插件已经安装,并且依赖于AppCenter的另一个插件 由Microsoft确切地说。
文件插件的版本为:"cordova-plugin-file": "^4.3.3"
由于错误,我可以强制安装插件,但我担心这会导致 错误或类似的东西。
在这种情况下最好做什么?