I am using ionic 4 and I have 7 plugins installed in the project. And I want to update all plugin at once using a single command.
I try to use the ionic state reset but got this error.
E:\project\demo>ionic state reset
[ERROR] ionic state has been removed.
We recommend using Cordova directly to manage Cordova plugins and platforms.
The following commands fulfill the old ionic state functionality:
ionic cordova platform save | save existing installed platforms to config.xml
ionic cordova plugin save | save existing installed plugins to config.xml
ionic cordova platform --help | view help page for managing Cordova platforms
ionic cordova plugin --help | view help page for managing Cordova plugins
ionic cordova prepare | install platforms and plugins listed in config.xml
See https://cordova.apache.org/docs/en/latest/platform_plugin_versioning_ref/ for detailed information.
Looks like this is not working in ionic 4, so is there any way to update plugins in Ionic 4?
Clear plugins folder, then call
cordova prepare.It worked for me!