I was playing with ionic (as usual) and i read “please update your ionic CLI”. (i’m on macOs env)
So i ran this command from my terminal :
sudo npm install -g ionic
Then i can’t use ionic anymore
ionic command not found
I crawl the web and i found the solution here
It sounds the npm root dir was changed when running
npm install on my ionic app directory.
I hope it could help someone.