简体   繁体   English

离子无法添加SocialSharing-PhoneGap-插件

[英]ionic unable to add SocialSharing-PhoneGap-Plugin

I am trying to use SocialSharing-PhoneGap-Plugin in my first app development, https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin#web-share-api 我正在尝试在我的第一个应用程序开发中使用SocialSharing-PhoneGap-Plugin https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin#web-share-api

I have tried following command : 我试过以下命令:

cordova plugin add SocialSharing-PhoneGap-Plugin cordova插件添加SocialSharing-PhoneGap-Plugin

cordova plugin add https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git cordova插件添加https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git

but It gives me same error , Anyone know what the problem is? 但这给了我同样的错误,有人知道是什么问题吗? 在此处输入图片说明

Some plugins can install in specific versions of cordova. 某些插件可以安装在cordova的特定版本中。

so please downgrade your cordova version and try to install that plugin again. 因此,请降级您的cordova版本,然后尝试重新安装该插件。

if your cordova version is 7+, downgrade to 6.5.0 如果您的cordova版本为7+,则降级为6.5.0

npm install -g cordova@6.5.0 npm install -g cordova@6.5.0

The plugin name is case sensitive, so the right one is: 插件名称区分大小写,因此正确的名称是:

cordova plugin rm cordova-plugin-x-socialsharing cordova插件rm cordova-plugin-x-socialsharing

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM