首页 文章

离子无法添加SocialSharing-PhoneGap-Plugin

提问于
浏览
0

我想在我的第一个应用程序开发中使用SocialSharing-PhoneGap-Plugin,https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin#web-share-api

我试过以下命令:

cordova插件添加了SocialSharing-PhoneGap-Plugin

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

但它给了我同样的错误,任何人都知道问题是什么?
enter image description here

2 回答

  • 0

    某些插件可以安装在特定版本的cordova中 .

    所以请降级你的cordova版本并尝试再次安装该插件 .

    如果你的cordova版本是7,降级到6.5.0

    npm install -g cordova@6.5.0

  • 2

    插件名称区分大小写,因此正确的名称是:

    cordova插件rm cordova-plugin-x-socialsharing

相关问题