Upgrade cordova: cannot install plugins from git urls anymore

前端 未结 10 1571
眼角桃花
眼角桃花 2020-12-16 11:15

I did a cordova/phonegap upgrade and now I cannot install plugins from git urls anymore. Anyone experienced such an issue and already solved this?

$ cordova          


        
10条回答
  •  南笙
    南笙 (楼主)
    2020-12-16 11:27

    A quick fix is to clone the git locally and provide the path from there. For a plug-in to start working, all it needs is to see the plugin.xml file

    So cordova plugin add https://github.com/phonegap/phonegap-plugin-fast-canvas.git -- fails because

    shell.js: internal error Error: EXDEV, cross-device link not permitted '/ -- normal error in Cordova 5.1.0+. Applies to most if not all .git install

    Local clone :: git clone https://github.com/phonegap/phonegap-plugin-fast-canvas.git

    And local install cordova plugin add /path/to/phonegap-plugin-fast-canvas

    Works.

提交回复
热议问题