0

I'm trying to install vue-cli with npm but I always get this error -bash : vue: command not found when I check the version.

I've tried everything, uninstall and install again, I check here Vue command not found , but it still doesn't work.

Error :

iMac-de-stage02:~ stage02$ vue --version -bash: vue: command not found

I installed vue-cli with : npm install -g @vue/cli

image vue-cli installation

My node version : v10.15.3

My npm version : 6.9.0

when I run npm bin : /Users/stage02/node_modules/.bin

OS : mac high sierra version 10.13.6

I also tried with yarn but nothing changed. Thanks in advance for your answer.

Mathias Nicod
  • 130
  • 12

1 Answers1

3

Have you checked if /Users/stage02/node_modules/.bin is in your $PATH? Try echo $PATH to see if it's in there.

If it's not, open /etc/paths and add the path on a new line.