I managed to fix Vue Cli no command error by doing the following:
sudo nano ~/.bash_profile
to edit your bash profile.export PATH=$PATH:/Users/[your username]/.npm-packages/bin
vue create my-project
and vue --version
etc. I did this after I installed the latest Vue Cli from https://cli.vuejs.org/
I generally use yarn, but I installed this globally with npm npm install -g @vue/cli
. You can use yarn too if you'd like yarn global add @vue/cli
Note: you may have to uninstall it first globally if you already have it installed: npm uninstall -g vue-cli
Hope this helps!