Ionic CLI error

I’m seeing this Ionic CLI error in Chrome

TypeError: undefined is not a function localhost/:28 console.(anonymous function)

The undefined error is thrown in the annotated source in the screenshot above. How to resolve it?

How did you get this? I just tried running ionic serve and wasn’t able to get this error.

I don’t know – it just started to appear for me. That was a couple days ago. Since then I have done npm update -g and updated all my global packages, ionic, ios-sim, ios-deploy, cordova.

I also did ionic platform remove ios android and re-added them, and I cleaned up some plugins - since then the problem has gone away, thankfully.