Can't install CLI on Mac OS Catalina

npm install -g @ionic/cli

/Users/peterba/.npm-packages/bin/ionic -> /Users/peterba/.npm-packages/lib/node_modules/@ionic/cli/bin/ionic

  • @ionic/cli@6.4.1

updated 1 package in 6.805s

Peters-MBP:~ peterba$ ionic --help

-bash: ionic: command not found

I’m having an issue installing the CLI on my mac. Does anyone have any advice?

My advice would be to install nvm before doing anything else, because it makes cleaning up after any other trouble you have so much easier.