Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vue command not found [duplicate]

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

like image 309
lecham Avatar asked Aug 21 '18 22:08

lecham


2 Answers

Try updating your PATH variable with this command:

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

Updating Node/NPM might help too.

like image 108
dziraf Avatar answered Oct 13 '22 00:10

dziraf


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

like image 20
魏宇恒 Avatar answered Oct 12 '22 23:10

魏宇恒