Ionic CLI Error undefined:1 SyntaxError: Unexpected token!

Hi all,

When I was working on CLI, My computer has restarted suddenly
And when it worked again, I became unable to run any CLI commands :frowning:

All ionic commands are giving same error i.e. undefined:1.
In command prompt it looks like below:

$ ionic -v  
undefined:1 
^ 
SyntaxError: Unexpected token

Please help.

Iā€™m also running into this issue, did you ever find a solution?

Yes I did

Just uninstall ionic and reinstall it : )