I have tried all the suggested solutions but nothing worked.
I am using macOS Catalina 10.15.3
Go to /usr/local/
Select bin folder > Get Info
Add your user to Sharing & Permissions.
Read & Write Permissions.

And go to terminal and run npm install -g @ionic/cli
It has helped me.