global packages:
@ionic/cli-utils : 1.5.0
Cordova CLI : 7.0.1
Ionic CLI : 3.5.0
local packages:
@ionic/app-scripts : 2.0.1
@ionic/cli-plugin-cordova : 1.4.1
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms : android 6.1.2
Ionic Framework : ionic-angular 3.5.0
System:
Node : v6.11.0
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 3.10.10
Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of
date.
TypeError: Cannot read property 'forEach' of undefined
I got the same issue.

Everyone has.
See also other issues with more/less descriptions : https://github.com/ionic-team/ionic-cli/issues/2516
npm install --save-dev --save-exact @ionic/cli-plugin-cordova@latest
Nope, did that, not working; Shouldnt be closed.
@adadgio It's closed because in no way is this the fault of the Ionic CLI. Node/npm environments get screwy sometimes because the development is going at 150mph. Whenever you get obscure issues, try using the variety of tools at your disposal.
npm outdated - shows you which packages are out of daterm -rf node_modules; rm package-lock.json; npm install - start fresh from your package.json definitionsYour issue isn't even related to the original issue. They're different errors entirely. If @mzl1988 could run the command with --verbose, I could see where the error is coming from.
I also got the same issue/error (ionic/cli-plugin-cordova) last few days, found issue in the code and fixed. please try to find the issue in your code side as well if any or any help required please reach me [email protected] with the details.
@Justinzhq , this solution is not working in my case.
@Devashish09 This issue is very old. The CLI does not use this plugin anymore. Please uninstall all CLI plugins you see in package.json (except the proxy plugin, if you're using it). Then, make sure you have the latest CLI installed: npm i -g ionic@latest. Make sure you don't have it installed locally: npm uninstall ionic.
If you have an issue, please create a new issue and fill out the issue template.
Most helpful comment
@adadgio It's closed because in no way is this the fault of the Ionic CLI. Node/npm environments get screwy sometimes because the development is going at 150mph. Whenever you get obscure issues, try using the variety of tools at your disposal.
npm outdated- shows you which packages are out of daterm -rf node_modules; rm package-lock.json; npm install- start fresh from your package.json definitionsYour issue isn't even related to the original issue. They're different errors entirely. If @mzl1988 could run the command with
--verbose, I could see where the error is coming from.