Phonegap-plugin-push being added twice?

I’m developing my app on Windows, and now need to build the iOS version on my Mac.

I mostly got it built, but had some plug in issues, so I’ve gone ahead and removed the plugins folder so I can ionic state restore and re-download the plugins. But when I do so, the push plugin installs correctly (with a --variable SENDER_ID="12345678"), but then it tries to install it a second time, without the --variable, and it fails:

cordova plugin add com.admob.google
cordova plugin add phonegap-plugin-push --variable SENDER_ID=“123456789012”
cordova plugin add phonegap-plugin-push

/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/state.js:543
throw ‘Error executing "’ + pluginCommand + ‘":\n’ + output;
^
Error executing “cordova plugin add phonegap-plugin-push”:
Error: Variable(s) missing (use: --variable SENDER_ID=value).

I’ve looked through my config.xml (there’s only one instance listed there, with the correct SENDER_ID), package.json (it’s listed there as well, only once, with the right SENDER_ID), ios.json in the platforms/ios folder (it’s in there as well, only once, with the right SENDER_ID, same as before).

I’m not quite sure where to go from here. Any clues?

I managed to solve this myself. I completely removed the project folder (again) and re-cloned it from GitHub. When I ran state restore again, it completed successfully.

I don’t know what caused it to begin with, but at least it’s fixed.