37

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,728
  • 2
  • 24
  • 43
lecham
  • 2,034
  • 5
  • 17
  • 33

2 Answers2

49

Try updating your PATH variable with this command:

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

Updating Node/NPM might help too.

dziraf
  • 3,382
  • 1
  • 14
  • 20
19

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

魏宇恒
  • 199
  • 4