39

Trying to install Vue, but I am getting an error -bash: vue: command not found.

Everything is installed per Vue instructions and I'm not sure why I am getting this issue.

Thanks in advance!

Screenshot of an error

John Snow
  • 1,898
  • 2
  • 27
  • 48
lecham
  • 2,294
  • 6
  • 22
  • 41

2 Answers2

53

Try updating your PATH variable with this command:

export PATH=$PATH:/Users/denis/.npm-global/bin

Updating Node/NPM might help too.

dziraf
  • 3,607
  • 1
  • 16
  • 22
21

It is better to uninstall the Vue with the command: npm uninstall -g @vue/cli and then install again.

魏宇恒
  • 219
  • 1
  • 4