Reputation: 83
I usually work on Windows and i'm trying to install Vue desperately on my mac with all possible ways but when i check on type Vue
or vue --version
, i systematically receive zsh: command not found: vue
All command i trying :
npm install -g @vue/cli@latest
sudo npm install -g npm@latest
sudo npm install -g npx@latest
sudo npm install --global @vue/cli@latest
yarn global add @vue/cli
npm install -g @vue/cli
I also tried to change the .zhsrc file with /Users/mac/.zshrc
to add :
export PATH=$PATH:/Users/mac/.npm-global/bin
...but still doesent work 😕
Upvotes: 1
Views: 2243
Reputation: 138676
Globally installed Node binaries (from npm install -g packageName
) are usually available from /usr/local/bin
, so you should edit .zshrc
to prefix that to the PATH
environment variable:
export PATH=/usr/local/bin:$PATH
Make sure to restart your shell for it to pick up the update.
Upvotes: 1