Upgrade cordova: cannot install plugins from git urls anymore

前端 未结 10 1540
眼角桃花
眼角桃花 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:41

    To extend other great answers provided here,

    As a temporary workaround, here's a one-liner that will downgrade Cordova, install plugin, and upgrade Cordova back:

    npm install -g cordova@5.0.0 && cordova plugin add [plugin url] && npm install -g cordova
    

    Will take some time to execute, but eliminates all the manual repo cloning work.

提交回复
热议问题