【问题标题】:how to install ionic capacitor contact native plugin如何安装离子电容器接触原生插件
【发布时间】:2022-01-17 15:16:23
【问题描述】:

当我尝试在 ionic 6 中安装“npm install @awesome-cordova-plugins/contacts”时,出现如下错误

npm ERR! 404 Not Found - GET https://registry.npmjs.org/@awesome-cordova-plugins%2fcontacts - Not found
npm ERR! 404
npm ERR! 404  '@awesome-cordova-plugins/contacts@*' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url. ```

how can i resolve this issue. same issue is happening for uid also.

【问题讨论】:

    标签: ionic-framework capacitor ionic-native ionic5


    【解决方案1】:

    安装依赖后需要同步

    ionic cap sync
    

    然后运行您的项目。您没有看到任何错误并成功运行

    有关此插件的更多信息click here

    【讨论】:

      【解决方案2】:
      【解决方案3】:

      根据 cordova-contacts-plugin repo here,cordova-contacts-plugin 自 2017 年 11 月 27 日起已弃用。

      由于it's npm repository 上有弃用通知。

      目前在 ionic 文档中的插件已被废弃,但似乎 ionic 文档从那时起没有更新。

      【讨论】:

      猜你喜欢
      • 2018-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-27
      • 2019-08-14
      • 2021-06-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多