[Vuejs]-Vue CLI installation leaves multiple warnings and does not work on Mac OS

0👍

After 2 days of frustration, This helped me resolve it:

How to fix the terminal error: vue command not found (MacOS)

Tip: You can also go to the Home Finder window of your user account, and view hidden folders (Command + Shift + . ) and edit the .bash_profile with a text editor to follow the advice in the article. Look for the ‘$username -> npm -> bin’ folder, inside you should see a vue.js file. This is the folder that vue-cli is installed into

0👍

The "Current" version of Node (v15.0.1) and npm v7.0.5 allows for successful installation of @vue/cli on macOS Catalina.

Download the latest "Current" macOS Installer (.pkg) from nodejs.org and try that. If you use nvm, add the following code to either .bashrc or .bash_profile.

Note: On Catalina, the default shell is zsh, so you would add the following to .zshrc.

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

0👍

This kind of error it will show if you don’t have the proper version of npm

so Npm install -g npm@latest
then npm install

after doing this try to install vue.js Npm i -g @vue/cli

Leave a comment