Yarn: No Command Vue Found

Oct 22, 2019
yarn global command not found

After installing @vue/cli via yarn

yarn global add @vue/cli
vue
No command 'vue' found, did you mean:
  ...

Get yarn global bin directory

yarn global bin
/home/[USERNAME]/.yarn/bin

Add yarn bin path to bash profile.

nano ~/.bashrc

Add the following line

export PATH="$HOME/.yarn/bin:$PATH"

Reload bash profile

source ~/.bashrc

Run vue again

vue

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.