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
- [Vuejs]-Got Stuck In Deploying Laravel App With Vue Js?
- [Vuejs]-Why is the .docx file returned from Controller corrupted?
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
- [Vuejs]-Why is the .docx file returned from Controller corrupted?
- [Vuejs]-Why does my Vue transition have no effect?
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