```bash npm i -g ionic@latest ``` or ```bash sudo npm i -g ionic@latest ``` if i run command, catch some error, like this:  how to resolve it?