Update cordova plugins in one command

前端 未结 14 759
故里飘歌
故里飘歌 2020-12-04 06:34

I am wondering is there an easier way to update cordova plugin?

I googled, found a hook (@ year 2013), but this is not 100% what I want.

I know I can do this

14条回答
  •  Happy的楠姐
    2020-12-04 06:59

    Found another answer from the npmjs.org

    https://www.npmjs.com/package/cordova-plugin-update

    Basically its installing the tool into your project:

    npm install -g cordova-plugin-update
    

    when done you then have to run the command

    cordova-plugin-update
    

    and it will prompt you to update if ever a newer version of a plugin is available

提交回复
热议问题