Ionic invalid or unexpected token error

when I install and try to run ionic commands such as ionic serve ionic -v it says invalid or unexpected token, I tried installing it again and again but the problem keeps coming

why

why 2