【问题标题】:Installing a specific plugin version for PhoneGap为 PhoneGap 安装特定的插件版本
【发布时间】:2014-01-10 13:18:14
【问题描述】:

当我构建我的 PhoneGap 应用程序时,此插件的最新版本不起作用:

https://github.com/katzer/cordova-plugin-local-notifications

所以我想回到版本 0.6.3,我知道它可以工作:

https://github.com/katzer/cordova-plugin-local-notifications/tree/v0.6.3

但是当我跑步时:

phonegap local plugin add https://github.com/katzer/cordova-plugin-local-notifications/tree/v0.6.3

我明白了:

[phonegap] adding the plugin: https://github.com/katzer/cordova-plugin-local-notifications/tree/dc894c1eeede69b935f19891fda8e45a6c4e8f2f
[error] Fetching plugin failed: Error: Command failed: fatal: https://github.com/katzer/cordova-plugin-local-notifications/tree/dc894c1eeede69b935f19891fda8e45a6c4e8f2f/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?

【问题讨论】:

    标签: cordova github phonegap-plugins


    【解决方案1】:

    只需保留 .git 网址,然后连接 #VERSION。

    在你的情况下:

    phonegap local plugin add https://github.com/katzer/cordova-plugin-local-notifications.git#v0.6.3

    【讨论】:

      【解决方案2】:

      您可以将所需版本下载到本地文件夹,然后在 phonegap local plugin add 调用中使用该本地文件夹的路径。

      【讨论】:

        猜你喜欢
        • 2020-08-10
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-12-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多