Ionic CLI Error undefined:1 SyntaxError: Unexpected token!


#1

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.


#2

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


#3

Yes I did

Just uninstall ionic and reinstall it : )