I deleted plugins folder by mistake how can I re-install all plugins :(


Hey guys

I need helps to reset the plugins of my project

I used “npm install” but no plugins folder

I used “ionic cordova platform add android” but the process failed

any helps please :’(


One work around would be to create a new blank project, add all the plugins and copy the plugin folder over to your other project. Or if your project is backed up on either Git or IonicPro, then you can simply restore an earlier version when you still had the plugins folder.

$> mkdir www
$> cordova prepare


“cordova prepare” works but I got error such as

Failed to restore plugin "cordova-plugin-fcm" from config.xml. You might need to try adding it again. Error: TypeError: Invalid data, chunk must be a string or buffer, not object

I’m trying to solve this issue now but anyway “thanks”